From: Brett Cannon Date: Sun, 21 Mar 2004 14:06:49 +0000 (+0000) Subject: Back out last patch that removed an entry from sys.path if it was not an X-Git-Tag: v2.4a1~648 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46cf4fc2497a8268c2d0b6eb43a6a3146bd519c3;p=python 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. --- 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