diff options
author | Steven Knight <knight@baldmt.com> | 2001-09-10 20:30:28 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-09-10 20:30:28 (GMT) |
commit | 5baa0ff42fc922008a0a148bef7da73b09f0dfbd (patch) | |
tree | 0e1da490107e63248230a0084eb1546d37b06872 /src | |
parent | 528c2bf71dd1d45f158f15b015a382dbac7a34df (diff) | |
download | SCons-5baa0ff42fc922008a0a148bef7da73b09f0dfbd.zip SCons-5baa0ff42fc922008a0a148bef7da73b09f0dfbd.tar.gz SCons-5baa0ff42fc922008a0a148bef7da73b09f0dfbd.tar.bz2 |
Look for SConstruct, Sconstruct, and sconstruct files.
Diffstat (limited to 'src')
-rw-r--r-- | src/scons.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scons.py b/src/scons.py index 7f86d15..f624fba 100644 --- a/src/scons.py +++ b/src/scons.py @@ -448,9 +448,12 @@ def main(): opt_func[opt](opt, arg) if not Scripts: - Scripts.append('SConstruct') + for file in ['SConstruct', 'Sconstruct', 'sconstruct']: + if os.path.isfile(file): + Scripts.append(file) + break - if local_help and not os.path.isfile(Scripts[0]): + if local_help and not Scripts: # They specified -h, but there's no SConstruct. Give them # the options usage before we try to read it and fail. PrintUsage() |