summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/systemconfig.py
diff options
context:
space:
mode:
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______")