2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00
Files
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'))