]> granicus.if.org Git - python/commitdiff
Back out last patch that removed an entry from sys.path if it was not an
authorBrett Cannon <bcannon@gmail.com>
Sun, 21 Mar 2004 14:06:49 +0000 (14:06 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 21 Mar 2004 14:06:49 +0000 (14:06 +0000)
existent path.  Pointed out by jvr that entries could be non-file items for
custom importers.

Lib/site.py

index 148a93f0b36b9a77aba7626c24970177ed58380e..682bbd5e407efac3f759fbd59e67076693ccdd9d 100644 (file)
@@ -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