diff options
author | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-07-18 16:32:30 -0400 |
---|---|---|
committer | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2012-07-18 16:32:30 -0400 |
commit | e500568d8d2f0a56cba2af84acf643c06581978d (patch) | |
tree | 891e6d002d6699dbb9f8ccff9372d4784958e340 /steuermann/run.py | |
parent | fd940f9f094b3af319885f27e2339c20187398b2 (diff) | |
download | steuermann-e500568d8d2f0a56cba2af84acf643c06581978d.tar.gz |
change to recognize $USER in hosts.ini
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@768 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/run.py')
-rw-r--r-- | steuermann/run.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/steuermann/run.py b/steuermann/run.py index 36f7f59..73e9409 100644 --- a/steuermann/run.py +++ b/steuermann/run.py @@ -30,6 +30,7 @@ import traceback import sys import errno import ConfigParser +import re def config_yes_no(d,which) : if not which in d : @@ -279,6 +280,11 @@ class runner(object): if value.startswith('[') : # it is a list d[name] = eval(value) + elif name.endswith('$') : + # this is ugly, but we'll do it for now + x = value.split('$') + x = x[0] + os.environ[x[1]] + d[name[:-1]] = x else : # everything else is plain text d[name] = value |