]> granicus.if.org Git - python/commitdiff
Add the correct build dir when building with pydebug.
authorGeorg Brandl <georg@python.org>
Mon, 21 Jan 2008 21:19:07 +0000 (21:19 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 21 Jan 2008 21:19:07 +0000 (21:19 +0000)
Lib/site.py

index 06185502481f541f2fb2cb45934fae507e712a7b..d6e915239ad7f7bd1b42d0844ad2a298a9bd24c7 100644 (file)
@@ -102,6 +102,8 @@ def addbuilddir():
     (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)