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
e94950ea
Commit
e94950ea
authored
Apr 13, 2013
by
Meador Inge
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads.
parents
8a1a6cff
2581bdb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
Lib/site.py
Lib/site.py
+6
-4
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/site.py
View file @
e94950ea
...
...
@@ -598,14 +598,16 @@ def _script():
"""
args
=
sys
.
argv
[
1
:]
if
not
args
:
user_base
=
getuserbase
()
user_site
=
getusersitepackages
()
print
(
"sys.path = ["
)
for
dir
in
sys
.
path
:
print
(
" %r,"
%
(
dir
,))
print
(
"]"
)
print
(
"USER_BASE: %r (%s)"
%
(
USER_BASE
,
"exists"
if
os
.
path
.
isdir
(
USER_BASE
)
else
"doesn't exist"
))
print
(
"USER_SITE: %r (%s)"
%
(
USER_SITE
,
"exists"
if
os
.
path
.
isdir
(
USER_SITE
)
else
"doesn't exist"
))
print
(
"USER_BASE: %r (%s)"
%
(
user_base
,
"exists"
if
os
.
path
.
isdir
(
user_base
)
else
"doesn't exist"
))
print
(
"USER_SITE: %r (%s)"
%
(
user_site
,
"exists"
if
os
.
path
.
isdir
(
user_site
)
else
"doesn't exist"
))
print
(
"ENABLE_USER_SITE: %r"
%
ENABLE_USER_SITE
)
sys
.
exit
(
0
)
...
...
Misc/NEWS
View file @
e94950ea
...
...
@@ -46,6 +46,9 @@ Core and Builtins
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
.
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