From f00b38e08ccdcb48e409df951454f91cec428c0e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 21 Jan 2008 21:19:07 +0000 Subject: Add the correct build dir when building with pydebug. --- Lib/site.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v0.12