diff options
-rw-r--r-- | src/scons.py | 4 | ||||
-rw-r--r-- | test/errors.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/scons.py b/src/scons.py index 16fb0bf..b08b786 100644 --- a/src/scons.py +++ b/src/scons.py @@ -517,14 +517,14 @@ def main(): while Scripts: file, Scripts = Scripts[0], Scripts[1:] if file == "-": - exec sys.stdin + exec sys.stdin in globals() else: try: f = open(file, "r") except IOError, s: sys.stderr.write("Ignoring missing script '%s'\n" % file) else: - exec f + exec f in globals() if local_help: # They specified -h, but there was no Help() inside the diff --git a/test/errors.py b/test/errors.py index a4b05cc..54e26b9 100644 --- a/test/errors.py +++ b/test/errors.py @@ -49,7 +49,7 @@ expect = r"""Traceback \((most recent call|innermost) last\): File "%s", line \d+, in \? main\(\) File "%s", line \d+, in main - exec f + exec f in globals\(\) File "SConstruct3", line \d+, in \? raise InternalError, 'error inside' InternalError: error inside |