diff options
author | Steven Knight <knight@baldmt.com> | 2004-11-21 16:18:50 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-11-21 16:18:50 (GMT) |
commit | efd149d6ff34c81e5a8950604df410bab99a3106 (patch) | |
tree | 3b66939e6dc14061317ca19f3371b60c2272c215 /src/engine/SCons/Util.py | |
parent | 9121165c1f6de68d4c2e8701083de04dfcf2ddc3 (diff) | |
download | SCons-efd149d6ff34c81e5a8950604df410bab99a3106.zip SCons-efd149d6ff34c81e5a8950604df410bab99a3106.tar.gz SCons-efd149d6ff34c81e5a8950604df410bab99a3106.tar.bz2 |
Fix Value node expansion in command-line strings. (Kevin Quick)
Diffstat (limited to 'src/engine/SCons/Util.py')
-rw-r--r-- | src/engine/SCons/Util.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py index ec809b9..896abaf 100644 --- a/src/engine/SCons/Util.py +++ b/src/engine/SCons/Util.py @@ -493,7 +493,15 @@ def subst_dict(target, source): dict['TARGET'] = Target_or_Source(tnl) if source: - snl = NLWrapper(source, lambda x: x.rfile().get_subst_proxy()) + def get_src_subst_proxy(node): + try: + rfile = node.rfile + except AttributeError: + pass + else: + node = rfile() + return node.get_subst_proxy() + snl = NLWrapper(source, get_src_subst_proxy) dict['SOURCES'] = Targets_or_Sources(snl) dict['SOURCE'] = Target_or_Source(snl) |