diff options
| author | Steven Knight <knight@baldmt.com> | 2001-09-12 02:20:03 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2001-09-12 02:20:03 (GMT) |
| commit | e3e7b09d110ace0334c941eec930f3d651fe1151 (patch) | |
| tree | e22e75f5e4a2a5aa75afd5e9fc3d7d1d76082da5 /src/scons.py | |
| parent | 08994e034cbc908eefe3e8acf3f002da68e77243 (diff) | |
| download | SCons-e3e7b09d110ace0334c941eec930f3d651fe1151.zip SCons-e3e7b09d110ace0334c941eec930f3d651fe1151.tar.gz SCons-e3e7b09d110ace0334c941eec930f3d651fe1151.tar.bz2 | |
Fixes for -f end cases.
Diffstat (limited to 'src/scons.py')
| -rw-r--r-- | src/scons.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/scons.py b/src/scons.py index f515bea..16fb0bf 100644 --- a/src/scons.py +++ b/src/scons.py @@ -516,7 +516,15 @@ def main(): while Scripts: file, Scripts = Scripts[0], Scripts[1:] - execfile(file) + if file == "-": + exec sys.stdin + else: + try: + f = open(file, "r") + except IOError, s: + sys.stderr.write("Ignoring missing script '%s'\n" % file) + else: + exec f if local_help: # They specified -h, but there was no Help() inside the |
