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
99ec5a52
Commit
99ec5a52
authored
Jan 31, 1999
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add $(APPLICATION) or :Mac:Tools:IDE at the very start of sys.path to improve startup time -- jvr
parent
a7a71933
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Mac/Tools/IDE/PythonIDE.py
Mac/Tools/IDE/PythonIDE.py
+5
-4
No files found.
Mac/Tools/IDE/PythonIDE.py
View file @
99ec5a52
...
...
@@ -20,18 +20,19 @@ def init():
# we're not an applet
Res
.
OpenResFile
(
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE:PythonIDE.rsrc"
))
Res
.
OpenResFile
(
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE:Widgets.rsrc"
))
sys
.
path
.
append
(
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE"
)
)
ide_path
=
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE"
)
else
:
# we're an applet
try
:
Res
.
GetResource
(
'CURS'
,
468
)
except
Res
.
Error
:
Res
.
OpenResFile
(
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE:Widgets.rsrc"
))
sys
.
path
.
append
(
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE"
)
)
ide_path
=
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE"
)
else
:
# we're a full blown applet
if
sys
.
argv
[
0
]
not
in
sys
.
path
:
sys
.
path
[
2
:
2
]
=
[
sys
.
argv
[
0
]]
ide_path
=
sys
.
argv
[
0
]
if
ide_path
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
ide_path
)
init
()
...
...
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