summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-03-20 21:31:33 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-03-20 21:31:33 (GMT)
commitcc45466b8f066919a92b84b0d46c4cd40922df4d (patch)
treef141f7952ce2283d31a3917c27d6158e6ee42ce7 /Lib/site.py
parent75be012cbae9061e320616e1eeb960331b61d565 (diff)
downloadcpython-cc45466b8f066919a92b84b0d46c4cd40922df4d.zip
cpython-cc45466b8f066919a92b84b0d46c4cd40922df4d.tar.gz
cpython-cc45466b8f066919a92b84b0d46c4cd40922df4d.tar.bz2
Remove non-existent paths.
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 682bbd5..148a93f 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