summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-03-21 14:06:49 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-03-21 14:06:49 (GMT)
commit46cf4fc2497a8268c2d0b6eb43a6a3146bd519c3 (patch)
tree0602630358734bd1f9a89281809a8f233a87b9d4
parentc82208eecbe97e1535be4b1c8c12a68d54d29bd5 (diff)
downloadcpython-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.
-rw-r--r--Lib/site.py2
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