[Python-checkins] r60180 - python/trunk/Lib/site.py

georg.brandl python-checkins at python.org
Mon Jan 21 22:19:07 CET 2008


Author: georg.brandl
Date: Mon Jan 21 22:19:07 2008
New Revision: 60180
Modified:
 python/trunk/Lib/site.py
Log:
Add the correct build dir when building with pydebug.
Modified: python/trunk/Lib/site.py
==============================================================================
--- python/trunk/Lib/site.py	(original)
+++ python/trunk/Lib/site.py	Mon Jan 21 22:19:07 2008
@@ -102,6 +102,8 @@
 (especially for Guido :-)"""
 from distutils.util import get_platform
 s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
+ if hasattr(sys, 'gettotalrefcount'):
+ s += '-pydebug'
 s = os.path.join(os.path.dirname(sys.path[-1]), s)
 sys.path.append(s)
 


More information about the Python-checkins mailing list

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