[Python-checkins] python/dist/src/Lib site.py,1.59,1.60
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Sun Mar 21 09:06:52 EST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3605/Lib
Modified Files:
site.py
Log Message:
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.
Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** site.py 20 Mar 2004 21:31:32 -0000 1.59
--- site.py 21 Mar 2004 14:06:49 -0000 1.60
***************
*** 80,84 ****
# paths.
dir, dircase = makepath(dir)
! if not dircase in _dirs_in_sys_path and os.path.exists(dir):
L.append(dir)
_dirs_in_sys_path[dircase] = 1
--- 80,84 ----
# paths.
dir, dircase = makepath(dir)
! if not dircase in _dirs_in_sys_path:
L.append(dir)
_dirs_in_sys_path[dircase] = 1
More information about the Python-checkins
mailing list