From 0822291ce154bdb7f5fc575ead11d109d47646ff Mon Sep 17 00:00:00 2001 From: cslocum Date: Thu, 12 Jun 2014 15:31:39 +0000 Subject: 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 --- steuermann/run.py | 11 ++--------- 1 file 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(): -- cgit