summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-07-12 03:28:01 (GMT)
committerSteven Knight <knight@baldmt.com>2002-07-12 03:28:01 (GMT)
commit792e057aef517bcf387f83d816b99f6b097f4c9a (patch)
tree2f93201d64f0d5ad4c9934d0f93a3190df7e141c /src
parent6d85cf7623aed86c27514fc85a05f168cb994714 (diff)
downloadSCons-792e057aef517bcf387f83d816b99f6b097f4c9a.zip
SCons-792e057aef517bcf387f83d816b99f6b097f4c9a.tar.gz
SCons-792e057aef517bcf387f83d816b99f6b097f4c9a.tar.bz2
Use the correct prefix for pdb.py. (Terrel Shumway)
Diffstat (limited to 'src')
-rw-r--r--src/CHANGES.txt2
-rw-r--r--src/engine/SCons/Script/__init__.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index 3002297..8cc8060 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 3040447..306b89b 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")