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
7ccd30fa
Commit
7ccd30fa
authored
Sep 19, 2002
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a problem in site.py which triggers in case sys.path is empty.
Bugfix candidate for 2.2.2.
parent
01824bf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Lib/site.py
Lib/site.py
+2
-1
No files found.
Lib/site.py
View file @
7ccd30fa
...
...
@@ -94,7 +94,8 @@ del dir, dircase, L
# (especially for Guido :-)
# XXX This should not be part of site.py, since it is needed even when
# using the -S option for Python. See http://www.python.org/sf/586680
if
os
.
name
==
"posix"
and
os
.
path
.
basename
(
sys
.
path
[
-
1
])
==
"Modules"
:
if
(
os
.
name
==
"posix"
and
sys
.
path
and
os
.
path
.
basename
(
sys
.
path
[
-
1
])
==
"Modules"
):
from
distutils.util
import
get_platform
s
=
"build/lib.%s-%.3s"
%
(
get_platform
(),
sys
.
version
)
s
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
path
[
-
1
]),
s
)
...
...
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