Commit 5930b4b2 authored by David Trudgian's avatar David Trudgian
Browse files

Hacky fix for modulecmd path

parent 0fdfb158
......@@ -14,6 +14,11 @@ from yamllint.config import YamlLintConfig
logger = logging.getLogger(__name__)
# TODO: make configurable nicely
class ParamFileException(Exception):
"""Exception for any errors related to the parameter file"""
......@@ -102,7 +107,7 @@ class ParamFile(object):
if 'modules' in params.keys():
for mod_name in params['modules']:
cmd = ['modulecmd', 'sh', 'show', mod_name]
cmd = [MODULECMD, 'sh', 'show', mod_name]
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
if "Unable to locate" in output:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment