From: Georg Brandl Date: Mon, 21 Jan 2008 21:19:07 +0000 (+0000) Subject: Add the correct build dir when building with pydebug. X-Git-Tag: v2.6a1~469 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f00b38e08ccdcb48e409df951454f91cec428c0e;p=python Add the correct build dir when building with pydebug. --- diff --git a/Lib/site.py b/Lib/site.py index 0618550248..d6e915239a 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)