#!/usr/bin/python

import os
import sys
import inspect

# thanks sorin
# https://stackoverflow.com/a/6098238

if __name__ == '__main__':
	try:
		from py_apitest import main
	except Exception as e:
		pass

		binfolder = os.path.realpath(os.path.abspath(os.path.split(inspect.getfile( inspect.currentframe() ))[0]))
		basefolder = os.path.dirname(binfolder)

		if basefolder not in sys.path:
			sys.path.insert(0, basefolder)

		from py_apitest import main

	sys.exit(main())
