diff options
author | Stefan Zimmermann <zimmermann.code@gmail.com> | 2014-04-01 07:19:29 (GMT) |
---|---|---|
committer | Stefan Zimmermann <zimmermann.code@gmail.com> | 2014-04-01 07:19:29 (GMT) |
commit | fad7c3eaf7f9cae12dbf03e03df7919d6fedea0e (patch) | |
tree | 699442d4b7b0b1f6c2dde9890c7fbcc785c9f5cc /src/engine/SCons/Script | |
parent | 7ae89fc5202506a060260f6052ec2f464c451107 (diff) | |
download | SCons-fad7c3eaf7f9cae12dbf03e03df7919d6fedea0e.zip SCons-fad7c3eaf7f9cae12dbf03e03df7919d6fedea0e.tar.gz SCons-fad7c3eaf7f9cae12dbf03e03df7919d6fedea0e.tar.bz2 |
Main: Use exec() with compile().
Diffstat (limited to 'src/engine/SCons/Script')
-rw-r--r-- | src/engine/SCons/Script/Main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py index 7906488..8725530 100644 --- a/src/engine/SCons/Script/Main.py +++ b/src/engine/SCons/Script/Main.py @@ -733,7 +733,7 @@ def _load_site_scons_dir(topdir, site_dir_name=None): site_m[k] = m.__dict__[k] # This is the magic. - exec(fp, site_m) + exec(compile(fp.read(), fp.name, 'exec'), site_m) except KeyboardInterrupt: raise except Exception as e: |