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
0ff7a4e7
Kaydet (Commit)
0ff7a4e7
authored
Şub 26, 2003
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use the same Python for running the bootstrap script and the main program
üst
ddf5283a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
bundlebuilder.py
Lib/plat-mac/bundlebuilder.py
+9
-1
No files found.
Lib/plat-mac/bundlebuilder.py
Dosyayı görüntüle @
0ff7a4e7
...
@@ -266,7 +266,7 @@ STRIP_EXEC = "/usr/bin/strip"
...
@@ -266,7 +266,7 @@ STRIP_EXEC = "/usr/bin/strip"
# sys.executable later.
# sys.executable later.
#
#
BOOTSTRAP_SCRIPT
=
"""
\
BOOTSTRAP_SCRIPT
=
"""
\
#!
/usr/bin/env python
#!
%(hashbang)
s
import sys, os
import sys, os
execdir = os.path.dirname(sys.argv[0])
execdir = os.path.dirname(sys.argv[0])
...
@@ -423,6 +423,14 @@ class AppBuilder(BundleBuilder):
...
@@ -423,6 +423,14 @@ class AppBuilder(BundleBuilder):
execdir
=
pathjoin
(
self
.
bundlepath
,
self
.
execdir
)
execdir
=
pathjoin
(
self
.
bundlepath
,
self
.
execdir
)
bootstrappath
=
pathjoin
(
execdir
,
self
.
name
)
bootstrappath
=
pathjoin
(
execdir
,
self
.
name
)
makedirs
(
execdir
)
makedirs
(
execdir
)
if
self
.
standalone
:
# XXX we're screwed when the end user has deleted
# /usr/bin/python
hashbang
=
"/usr/bin/python"
else
:
hashbang
=
sys
.
executable
while
os
.
path
.
islink
(
hashbang
):
hashbang
=
os
.
readlink
(
hashbang
)
open
(
bootstrappath
,
"w"
)
.
write
(
BOOTSTRAP_SCRIPT
%
locals
())
open
(
bootstrappath
,
"w"
)
.
write
(
BOOTSTRAP_SCRIPT
%
locals
())
os
.
chmod
(
bootstrappath
,
0775
)
os
.
chmod
(
bootstrappath
,
0775
)
...
...
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