[Python-checkins] CVS: python/dist/src/Lib site.py,1.32,1.33
Jack Jansen
jackjansen@users.sourceforge.net
Wed, 15 Aug 2001 05:07:48 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv22500/python/Lib
Modified Files:
site.py
Log Message:
Don't remove non-directories from sys.path on the mac: files
can be on sys.path too.
Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** site.py 2001/07/20 20:06:17 1.32
--- site.py 2001/08/15 12:07:46 1.33
***************
*** 81,86 ****
for dir in sys.path:
# Filter out paths that don't exist, but leave in the empty string
! # since it's a special case.
! if dir and not os.path.isdir(dir):
continue
dir, dircase = makepath(dir)
--- 81,87 ----
for dir in sys.path:
# Filter out paths that don't exist, but leave in the empty string
! # since it's a special case. Except on the mac, where files are legal
! # in sys.path.
! if dir and not os.path.isdir(dir) and sys.platform != 'mac':
continue
dir, dircase = makepath(dir)