#!/usr/bin/python

import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../scripts/postman')

import mocking

workDir = os.getcwd()
mock = mocking.Mocking(workDir)
mock.convert()
if len(sys.argv) > 1 and sys.argv[1] == 'run':
    os.system('newman run ' + mock.getOutFileName())
