mirror of https://github.com/python/cpython
Add the correct build dir when building with pydebug.
This commit is contained in:
parent
898f1879e1
commit
f00b38e08c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue