commit | f00b38e08ccdcb48e409df951454f91cec428c0e | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Jan 21 21:19:07 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Mon Jan 21 21:19:07 2008 +0000 |
tree | ba4d6087e421cbbbb493985f2f854041e922559a | |
parent | 898f1879e1bf6fe0a0d94d2abe8e8f5b32f795c1 [diff] [blame] |
Add the correct build dir when building with pydebug.
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 @@ (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)