Kaydet (Commit) 46cf4fc2 authored tarafından Brett Cannon's avatar Brett Cannon

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.
üst c82208ee
......@@ -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
......
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