summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/systemconfig.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-05 02:04:03 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-05 02:04:03 (GMT)
commit4c3293b79113967cfe86eab4ff6ec974f809e07e (patch)
tree868098ca3bae949f7a02b52b7df0b30017ef5a8e /abs/core-testing/LinHES-config/systemconfig.py
parent70c7883467b9348ce43b2822664bfa19af4d553d (diff)
downloadlinhes_pkgbuild-4c3293b79113967cfe86eab4ff6ec974f809e07e.zip
linhes_pkgbuild-4c3293b79113967cfe86eab4ff6ec974f809e07e.tar.gz
linhes_pkgbuild-4c3293b79113967cfe86eab4ff6ec974f809e07e.tar.bz2
LinHES-config: fix modules.mythvantage typo in ir setup.
Set default value for templates if the variable isn't present to the shell.
Diffstat (limited to 'abs/core-testing/LinHES-config/systemconfig.py')
-rwxr-xr-xabs/core-testing/LinHES-config/systemconfig.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-config/systemconfig.py b/abs/core-testing/LinHES-config/systemconfig.py
index 77471c2..5ccaa10 100755
--- a/abs/core-testing/LinHES-config/systemconfig.py
+++ b/abs/core-testing/LinHES-config/systemconfig.py
@@ -202,7 +202,13 @@ if __name__ == "__main__":
var, val = line.rsplit("=", 1)
val = val.strip('"')
systemconfig[var.strip()] = val.strip()
- systemconfig["TEMPLATES"] = os.environ["TEMPLATES"]
+ try:
+ systemconfig["TEMPLATES"] = os.environ["TEMPLATES"]
+ except:
+ logging.critical(" *TEMPLATES is not defined")
+ logging.critical(" *using default value")
+ systemconfig["TEMPLATES"] = "/usr/MythVantage/templates"
+
logging.debug("______START OF DEBUG______")
main(sys.argv[1:])
logging.debug("______cmd line options______")