diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-03-21 14:06:49 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-03-21 14:06:49 +0000 |
commit | e11ffc4abf0cbe502a9d575b36627aea61589f2c (patch) | |
tree | 750dfec156ef1a2362de67353c0142b310ee192f /Lib/site.py | |
parent | d6dad5b53ff0897859d32381c1d238f18f14005c (diff) | |
download | cpython-e11ffc4abf0cbe502a9d575b36627aea61589f2c.tar.gz |
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 148a93f0b3..682bbd5e40 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 |