diff options
Diffstat (limited to 'src/boost/libs/python/test/pyrun.py')
-rw-r--r-- | src/boost/libs/python/test/pyrun.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/boost/libs/python/test/pyrun.py b/src/boost/libs/python/test/pyrun.py new file mode 100644 index 00000000..d330773e --- /dev/null +++ b/src/boost/libs/python/test/pyrun.py @@ -0,0 +1,7 @@ +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')) |