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
e94950ea
Kaydet (Commit)
e94950ea
authored
Nis 14, 2013
tarafından
Meador Inge
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge heads.
üst
8a1a6cff
2581bdb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
site.py
Lib/site.py
+6
-4
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/site.py
Dosyayı görüntüle @
e94950ea
...
@@ -598,14 +598,16 @@ def _script():
...
@@ -598,14 +598,16 @@ def _script():
"""
"""
args
=
sys
.
argv
[
1
:]
args
=
sys
.
argv
[
1
:]
if
not
args
:
if
not
args
:
user_base
=
getuserbase
()
user_site
=
getusersitepackages
()
print
(
"sys.path = ["
)
print
(
"sys.path = ["
)
for
dir
in
sys
.
path
:
for
dir
in
sys
.
path
:
print
(
"
%
r,"
%
(
dir
,))
print
(
"
%
r,"
%
(
dir
,))
print
(
"]"
)
print
(
"]"
)
print
(
"USER_BASE:
%
r (
%
s)"
%
(
USER_BASE
,
print
(
"USER_BASE:
%
r (
%
s)"
%
(
user_base
,
"exists"
if
os
.
path
.
isdir
(
USER_BASE
)
else
"doesn't exist"
))
"exists"
if
os
.
path
.
isdir
(
user_base
)
else
"doesn't exist"
))
print
(
"USER_SITE:
%
r (
%
s)"
%
(
USER_SITE
,
print
(
"USER_SITE:
%
r (
%
s)"
%
(
user_site
,
"exists"
if
os
.
path
.
isdir
(
USER_SITE
)
else
"doesn't exist"
))
"exists"
if
os
.
path
.
isdir
(
user_site
)
else
"doesn't exist"
))
print
(
"ENABLE_USER_SITE:
%
r"
%
ENABLE_USER_SITE
)
print
(
"ENABLE_USER_SITE:
%
r"
%
ENABLE_USER_SITE
)
sys
.
exit
(
0
)
sys
.
exit
(
0
)
...
...
Misc/NEWS
Dosyayı görüntüle @
e94950ea
...
@@ -46,6 +46,9 @@ Core and Builtins
...
@@ -46,6 +46,9 @@ Core and Builtins
Library
Library
-------
-------
-
Issue
#
16804
:
Fix
a
bug
in
the
'site'
module
that
caused
running
'python -S -m site'
to
incorrectly
throw
an
exception
.
-
Issue
#
15480
:
Remove
the
deprecated
and
unused
TYPE_INT64
code
from
marshal
.
-
Issue
#
15480
:
Remove
the
deprecated
and
unused
TYPE_INT64
code
from
marshal
.
Initial
patch
by
Daniel
Riti
.
Initial
patch
by
Daniel
Riti
.
...
...
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