Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
99ec5a52
Kaydet (Commit)
99ec5a52
authored
Ock 31, 1999
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add $(APPLICATION) or :Mac:Tools:IDE at the very start of sys.path to improve startup time -- jvr
üst
a7a71933
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
PythonIDE.py
Mac/Tools/IDE/PythonIDE.py
+5
-4
No files found.
Mac/Tools/IDE/PythonIDE.py
Dosyayı görüntüle @
99ec5a52
...
@@ -20,18 +20,19 @@ def init():
...
@@ -20,18 +20,19 @@ def init():
# we're not an applet
# 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:PythonIDE.rsrc"
))
Res
.
OpenResFile
(
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE:Widgets.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
:
else
:
# we're an applet
# we're an applet
try
:
try
:
Res
.
GetResource
(
'CURS'
,
468
)
Res
.
GetResource
(
'CURS'
,
468
)
except
Res
.
Error
:
except
Res
.
Error
:
Res
.
OpenResFile
(
os
.
path
.
join
(
sys
.
exec_prefix
,
":Mac:Tools:IDE:Widgets.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
:
else
:
# we're a full blown applet
# we're a full blown applet
if
sys
.
argv
[
0
]
not
in
sys
.
path
:
ide_path
=
sys
.
argv
[
0
]
sys
.
path
[
2
:
2
]
=
[
sys
.
argv
[
0
]]
if
ide_path
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
ide_path
)
init
()
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