From 8ef93a8a6f41be16e80a34b231e0b39e0355df9d Mon Sep 17 00:00:00 2001 From: cslocum Date: Thu, 14 Mar 2013 19:04:48 +0000 Subject: stick things from os.environ into args to supplement things defined in hosts.ini git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@944 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- steuermann/run.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/steuermann/run.py b/steuermann/run.py index 72bba6c..5e2db0d 100644 --- a/steuermann/run.py +++ b/steuermann/run.py @@ -151,6 +151,11 @@ class runner(object): runname=run_name, ) + # also stick everything from env into args (if not already defined) + for k, v in os.environ.items(): + if k not in args.keys(): + args[k] = v + if debug : print "ARGS" for x in sorted([x for x in args]) : -- cgit