summaryrefslogtreecommitdiffstats
path: root/src/scons.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-12 02:20:03 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-12 02:20:03 (GMT)
commite3e7b09d110ace0334c941eec930f3d651fe1151 (patch)
treee22e75f5e4a2a5aa75afd5e9fc3d7d1d76082da5 /src/scons.py
parent08994e034cbc908eefe3e8acf3f002da68e77243 (diff)
downloadSCons-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.py10
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