From cc45466b8f066919a92b84b0d46c4cd40922df4d Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 20 Mar 2004 21:31:33 +0000 Subject: Remove non-existent paths. --- Lib/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/site.py') diff --git a/Lib/site.py b/Lib/site.py index 682bbd5e40..148a93f0b3 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: + if not dircase in _dirs_in_sys_path and os.path.exists(dir): L.append(dir) _dirs_in_sys_path[dircase] = 1 sys.path[:] = L -- cgit v1.2.1