python/test/pyrun.py
2016-06-18 00:00:22 -04:00

8 lines
173 B
Python

import sys
pythonpath = sys.argv[1]
scriptfile = sys.argv[2]
sys.argv = sys.argv[2:]
sys.path.append(pythonpath)
exec(compile(open(scriptfile).read(), scriptfile, 'exec'))