diff options
author | cslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2014-06-12 11:31:39 -0400 |
---|---|---|
committer | cslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2014-06-12 11:31:39 -0400 |
commit | 0822291ce154bdb7f5fc575ead11d109d47646ff (patch) | |
tree | c2fde38cb1603c243011437c2b6268628e0e7942 /steuermann/run.py | |
parent | 256c841c42500b15fa8494754ec2a3eb4b9e6bf7 (diff) | |
download | steuermann-0822291ce154bdb7f5fc575ead11d109d47646ff.tar.gz |
added variable substitution in the 'script' string
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@1279 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/run.py')
-rw-r--r-- | steuermann/run.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/steuermann/run.py b/steuermann/run.py index d5535b3..3a1f578 100644 --- a/steuermann/run.py +++ b/steuermann/run.py @@ -39,7 +39,7 @@ def config_yes_no(d,which) : s = d[which] return s.strip()[0].lower() in ( 'y', 't', '1' ) -debug=1 +debug=0 ##### @@ -142,7 +142,7 @@ class runner(object): args = args.copy() args.update( - script=node.script, + script=node.script % nodes.saved_conditions, script_type=node.script_type, host=node.host, table=node.table, @@ -152,13 +152,6 @@ class runner(object): runname=run_name, ) - print - print 'script = %s' %args['script'] - print - print 'script = %s' %(args['script'] % nodes.saved_conditions) - print - - # also stick everything from env into args (if not already defined) for k, v in os.environ.items(): if k not in args.keys(): |