mirror of
https://github.com/python/cpython.git
synced 2025-09-28 03:13:48 +00:00
Patch by Tony Lownds: add the Resources directory to sys.path.
This commit is contained in:
parent
9c89da277d
commit
e87ed57ea6
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ if not sys.argv or sys.argv[0][:1] == '-':
|
||||||
else:
|
else:
|
||||||
_dir = os.path.split(sys.argv[0])[0]
|
_dir = os.path.split(sys.argv[0])[0]
|
||||||
#
|
#
|
||||||
|
# Add the Resources directory to the path. This is where files installed
|
||||||
|
# by BuildApplet.py with the --extra option show up, and if those files are
|
||||||
|
# modules this sys.path modification is necessary to be able to import them.
|
||||||
|
#
|
||||||
|
sys.path.insert(0, _dir)
|
||||||
|
#
|
||||||
# Create sys.argv
|
# Create sys.argv
|
||||||
#
|
#
|
||||||
argvemulator.ArgvCollector().mainloop()
|
argvemulator.ArgvCollector().mainloop()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue