diff options
author | Stefan Zimmermann <zimmermann.code@gmail.com> | 2013-12-27 13:07:07 (GMT) |
---|---|---|
committer | Stefan Zimmermann <zimmermann.code@gmail.com> | 2013-12-27 13:07:07 (GMT) |
commit | fd24c4ea622e271936c2df2a5efa484cd351bd9c (patch) | |
tree | 461f12f137b8bdf56e55ef99e9f072f8dbba96f2 | |
parent | d1c2f4dbdbf5ca3f5c1f8bf6da45c09d82046683 (diff) | |
download | SCons-fd24c4ea622e271936c2df2a5efa484cd351bd9c.zip SCons-fd24c4ea622e271936c2df2a5efa484cd351bd9c.tar.gz SCons-fd24c4ea622e271936c2df2a5efa484cd351bd9c.tar.bz2 |
Use exec() with compile() to preserve script name.
-rw-r--r-- | src/engine/SCons/Script/SConscript.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Script/SConscript.py b/src/engine/SCons/Script/SConscript.py index b2dc4c1..3ee9464 100644 --- a/src/engine/SCons/Script/SConscript.py +++ b/src/engine/SCons/Script/SConscript.py @@ -26,7 +26,6 @@ files. # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -from __future__ import division, print_function __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" @@ -257,7 +256,8 @@ def _SConscript(fs, *files, **kw): pass try: try: - exec(_file_.read(), call_stack[-1].globals) + exec(compile(_file_.read(), _file_.name, 'exec'), + call_stack[-1].globals) except SConscriptReturn: pass finally: |