diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-03-21 14:06:49 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-03-21 14:06:49 (GMT) |
commit | 46cf4fc2497a8268c2d0b6eb43a6a3146bd519c3 (patch) | |
tree | 0602630358734bd1f9a89281809a8f233a87b9d4 /Lib/site.py | |
parent | c82208eecbe97e1535be4b1c8c12a68d54d29bd5 (diff) | |
download | cpython-46cf4fc2497a8268c2d0b6eb43a6a3146bd519c3.zip cpython-46cf4fc2497a8268c2d0b6eb43a6a3146bd519c3.tar.gz cpython-46cf4fc2497a8268c2d0b6eb43a6a3146bd519c3.tar.bz2 |
Back out last patch that removed an entry from sys.path if it was not an
existent path. Pointed out by jvr that entries could be non-file items for
custom importers.
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py index 148a93f..682bbd5 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -79,7 +79,7 @@ for dir in sys.path: # if they only differ in case); turn relative paths into absolute # paths. dir, dircase = makepath(dir) - if not dircase in _dirs_in_sys_path and os.path.exists(dir): + if not dircase in _dirs_in_sys_path: L.append(dir) _dirs_in_sys_path[dircase] = 1 sys.path[:] = L |