summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-21 21:19:07 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-21 21:19:07 (GMT)
commitf00b38e08ccdcb48e409df951454f91cec428c0e (patch)
treeba4d6087e421cbbbb493985f2f854041e922559a /Lib/site.py
parent898f1879e1bf6fe0a0d94d2abe8e8f5b32f795c1 (diff)
downloadcpython-f00b38e08ccdcb48e409df951454f91cec428c0e.zip
cpython-f00b38e08ccdcb48e409df951454f91cec428c0e.tar.gz
cpython-f00b38e08ccdcb48e409df951454f91cec428c0e.tar.bz2
Add the correct build dir when building with pydebug.
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 0618550..d6e9152 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -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)