8 lines
173 B
Python
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'))
|