diff options
author | cslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2013-03-14 15:04:48 -0400 |
---|---|---|
committer | cslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2013-03-14 15:04:48 -0400 |
commit | 8ef93a8a6f41be16e80a34b231e0b39e0355df9d (patch) | |
tree | 6981e5282ccbd276cd1a5fb363a76f44fc2659cb | |
parent | 0eaae8c171377c58af63902f0607ee026d404d24 (diff) | |
download | steuermann-8ef93a8a6f41be16e80a34b231e0b39e0355df9d.tar.gz |
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
-rw-r--r-- | steuermann/run.py | 5 |
1 files changed, 5 insertions, 0 deletions
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]) : |