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
fbac4bbf
Kaydet (Commit)
fbac4bbf
authored
Agu 31, 1995
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- imp seems to always want a file object arg
- continue if resource file not found (may be an applet)
üst
0223aa11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
RunLibScript.py
Mac/scripts/RunLibScript.py
+6
-3
No files found.
Mac/scripts/RunLibScript.py
Dosyayı görüntüle @
fbac4bbf
...
...
@@ -24,9 +24,9 @@ PAUSE=10
def
import_as_main
(
name
):
fp
,
path
,
(
suffix
,
mode
,
type
)
=
imp
.
find_module
(
name
)
if
type
==
imp
.
PY_SOURCE
:
imp
.
load_source
(
'__main__'
,
path
)
imp
.
load_source
(
'__main__'
,
path
,
fp
)
elif
type
==
imp
.
PY_COMPILED
:
imp
.
load_compiled
(
'__main__'
,
path
)
imp
.
load_compiled
(
'__main__'
,
path
,
fp
)
elif
type
==
imp
.
PY_RESOURCE
:
imp
.
load_resource
(
'__main__'
,
path
)
...
...
@@ -84,7 +84,10 @@ def interact():
def
main
():
curdir
=
os
.
getcwd
()
import
Res
Res
.
OpenResFile
(
'RunLibScript.rsrc'
)
try
:
Res
.
OpenResFile
(
'RunLibScript.rsrc'
)
except
:
pass
# Assume we're an applet already
name
,
argv
,
stdin
,
stdout
,
wdir
,
pause
=
interact
()
if
not
name
:
sys
.
exit
(
0
)
...
...
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