Commit 7767c56a authored by isaak yansane-sisk's avatar isaak yansane-sisk

add all in sys.path to PYTHONPATH

parent d5deb01f
...@@ -1801,11 +1801,14 @@ py_script_template = script_header + '''\ ...@@ -1801,11 +1801,14 @@ py_script_template = script_header + '''\
%(relative_paths_setup)s %(relative_paths_setup)s
import sys import sys
import os
sys.path[0:0] = [ sys.path[0:0] = [
%(path)s, %(path)s,
] ]
os.environ['PYTHONPATH'] = ':'.join(sys.path)
_interactive = True _interactive = True
if len(sys.argv) > 1: if len(sys.argv) > 1:
_options, _args = __import__("getopt").getopt(sys.argv[1:], 'ic:m:') _options, _args = __import__("getopt").getopt(sys.argv[1:], 'ic:m:')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment