You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
352 B
Python
15 lines
352 B
Python
#!/usr/bin/env python
|
|
|
|
import json
|
|
import os
|
|
import sys
|
|
|
|
os.environ['ORIGINAL_ARGV'] = json.dumps(sys.argv)
|
|
os.environ['THIS_IS_STUB_PYTHON'] = '1'
|
|
|
|
if sys.argv[1].startswith('-'):
|
|
os.execvp(sys.executable, [sys.executable] + sys.argv[1:])
|
|
else:
|
|
os.environ['STUB_PYTHON_FIRST_ARG'] = sys.argv.pop(1)
|
|
os.execvp(sys.executable, sys.argv[1:])
|