Kaydet (Commit) 201f46de authored tarafından Jack Jansen's avatar Jack Jansen

Replace first sys.path entry with the directory where the script lives

(Just).
üst 93c88cca
......@@ -62,7 +62,11 @@ def process(program, modules=[], module_files = [], debug=0):
module_files.append(m)
else:
modules.append(m)
path = extra_path + sys.path[:]
# collect all modules of the program
path = sys.path[:]
dir = os.path.dirname(program)
path[0] = dir # "current dir"
path = extra_path + path
#
# Create the module finder and let it do its work
#
......
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