From fb5c41a145ed521040bee09f646b4b3c4b321aec Mon Sep 17 00:00:00 2001 From: stevenknight Date: Fri, 12 Jul 2002 03:28:01 +0000 Subject: [PATCH] Use the correct prefix for pdb.py. (Terrel Shumway) git-svn-id: http://scons.tigris.org/svn/scons/trunk@409 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/CHANGES.txt | 2 ++ src/engine/SCons/Script/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 3002297b..8cc8060f 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -148,6 +148,8 @@ RELEASE 0.08 - - Use a $PYTHON construction variable, initialized to sys.executable, when using Python to build parts of the SCons packages. + - Use sys.prefix, not sys.exec_prefix, to find pdb.py. + RELEASE 0.07 - Thu, 2 May 2002 13:37:16 -0500 diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index 3040447a..306b89b2 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -475,10 +475,10 @@ def options_init(): args = [ sys.executable, "pdb.py" ] + \ filter(lambda x: x != "--debug=pdb", sys.argv) if sys.platform == 'win32': - args[1] = os.path.join(sys.exec_prefix, "lib", "pdb.py") + args[1] = os.path.join(sys.prefix, "lib", "pdb.py") sys.exit(os.spawnve(os.P_WAIT, args[0], args, os.environ)) else: - args[1] = os.path.join(sys.exec_prefix, + args[1] = os.path.join(sys.prefix, "lib", "python" + sys.version[0:3], "pdb.py") -- 2.26.2