Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e87ed57e
Commit
e87ed57e
authored
Sep 12, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch by Tony Lownds: add the Resources directory to sys.path.
parent
9c89da27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Mac/Lib/appletrawmain.py
Mac/Lib/appletrawmain.py
+6
-0
No files found.
Mac/Lib/appletrawmain.py
View file @
e87ed57e
...
...
@@ -22,6 +22,12 @@ if not sys.argv or sys.argv[0][:1] == '-':
else
:
_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
#
argvemulator
.
ArgvCollector
().
mainloop
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment