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
31b5323c
Commit
31b5323c
authored
Aug 15, 2001
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't remove non-directories from sys.path on the mac: files
can be on sys.path too.
parent
591f71b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/site.py
Lib/site.py
+3
-2
No files found.
Lib/site.py
View file @
31b5323c
...
...
@@ -80,8 +80,9 @@ L = []
_dirs_in_sys_path
=
{}
for
dir
in
sys
.
path
:
# Filter out paths that don't exist, but leave in the empty string
# since it's a special case.
if
dir
and
not
os
.
path
.
isdir
(
dir
):
# since it's a special case. Except on the mac, where files are legal
# in sys.path.
if
dir
and
not
os
.
path
.
isdir
(
dir
)
and
sys
.
platform
!=
'mac'
:
continue
dir
,
dircase
=
makepath
(
dir
)
if
not
_dirs_in_sys_path
.
has_key
(
dircase
):
...
...
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