Commit 7931ec30 authored by Brett Cannon's avatar Brett Cannon

Remove non-existent paths.

parent 490a9e77
...@@ -79,7 +79,7 @@ for dir in sys.path: ...@@ -79,7 +79,7 @@ for dir in sys.path:
# if they only differ in case); turn relative paths into absolute # if they only differ in case); turn relative paths into absolute
# paths. # paths.
dir, dircase = makepath(dir) 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) L.append(dir)
_dirs_in_sys_path[dircase] = 1 _dirs_in_sys_path[dircase] = 1
sys.path[:] = L sys.path[:] = L
......
...@@ -276,6 +276,8 @@ Extension modules ...@@ -276,6 +276,8 @@ Extension modules
Library Library
------- -------
- site.py now removes paths that do not exist.
- The ptcp154 codec was added for Kazakh character set support. - The ptcp154 codec was added for Kazakh character set support.
- Support non-anonymous ftp URLs in urllib2. - Support non-anonymous ftp URLs in urllib2.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment