projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591f71b
)
Don't remove non-directories from sys.path on the mac: files
author
Jack Jansen
<jack.jansen@cwi.nl>
Wed, 15 Aug 2001 12:07:46 +0000
(12:07 +0000)
committer
Jack Jansen
<jack.jansen@cwi.nl>
Wed, 15 Aug 2001 12:07:46 +0000
(12:07 +0000)
can be on sys.path too.
Lib/site.py
patch
|
blob
|
history
diff --git
a/Lib/site.py
b/Lib/site.py
index be530659a3580265d2a639badb95dcad244f5c5a..a2de4f2d4740b47ea79e2417aa9968a5972d1583 100644
(file)
--- a/
Lib/site.py
+++ b/
Lib/site.py
@@
-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):