Add the correct build dir when building with pydebug.

This commit is contained in:
Georg Brandl 2008-01-21 21:19:07 +00:00
parent 898f1879e1
commit f00b38e08c
1 changed files with 2 additions and 0 deletions

View 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)