[Python-checkins] python/dist/src/Lib site.py,1.39,1.39.4.1

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
2002年10月05日 20:52:46 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv28071
Modified Files:
 Tag: release22-maint
	site.py 
Log Message:
Backport 1.45:
Fix a problem in site.py which triggers in case sys.path is empty.
Bugfix candidate for 2.2.2.
Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.39
retrieving revision 1.39.4.1
diff -C2 -d -r1.39 -r1.39.4.1
*** site.py	17 Dec 2001 16:07:06 -0000	1.39
--- site.py	6 Oct 2002 03:52:44 -0000	1.39.4.1
***************
*** 93,97 ****
 # Append ./build/lib.<platform> in case we're running in the build dir
 # (especially for Guido :-)
! if os.name == "posix" and os.path.basename(sys.path[-1]) == "Modules":
 from distutils.util import get_platform
 s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
--- 93,98 ----
 # Append ./build/lib.<platform> in case we're running in the build dir
 # (especially for Guido :-)
! if (os.name == "posix" and sys.path and
! os.path.basename(sys.path[-1]) == "Modules"):
 from distutils.util import get_platform
 s = "build/lib.%s-%.3s" % (get_platform(), sys.version)

AltStyle によって変換されたページ (->オリジナル) /