summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-20 18:42:04 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-20 18:42:04 (GMT)
commit0b2e8f1e8bc49ab23cce17982bc6eb8c62604bff (patch)
treebc9688df0d96d5b75ff2c2da44c18466995fb1f8 /etc
parent16a3b3c891ae3a04dfe50c2c6473b781c8194a15 (diff)
downloadSCons-0b2e8f1e8bc49ab23cce17982bc6eb8c62604bff.zip
SCons-0b2e8f1e8bc49ab23cce17982bc6eb8c62604bff.tar.gz
SCons-0b2e8f1e8bc49ab23cce17982bc6eb8c62604bff.tar.bz2
Install scons, not scons.py
Diffstat (limited to 'etc')
-rw-r--r--etc/TestSCons.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py
index fbc53ba..49c8f21 100644
--- a/etc/TestSCons.py
+++ b/etc/TestSCons.py
@@ -16,6 +16,7 @@ or attributes defined in this subclass.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
+import os.path
import TestCmd
class TestFailed(Exception):
@@ -40,7 +41,8 @@ class TestSCons(TestCmd.TestCmd):
If they're not overridden by keyword arguments, this
initializes the object with the following default values:
- program = 'scons.py'
+ program = 'scons' if it exists,
+ else 'scons.py'
interpreter = 'python'
workdir = ''
@@ -51,7 +53,10 @@ class TestSCons(TestCmd.TestCmd):
is not necessary.
"""
if not kw.has_key('program'):
- kw['program'] = 'scons.py'
+ if os.path.exists('scons'):
+ kw['program'] = 'scons'
+ else:
+ kw['program'] = 'scons.py'
if not kw.has_key('interpreter'):
kw['interpreter'] = 'python'
if not kw.has_key('workdir'):