Commit 81d7ca74 authored by Manuel Günther's avatar Manuel Günther

Made the grid deployment independent of some Idiap specific variables (when outside Idiap).

parent 6bb5b7e4
......@@ -32,8 +32,12 @@ def environ(context):
(key, _, value) = line.partition("=")
os.environ[key.strip()] = value.strip()
# in case the BASEDIRSETSHELL environment variable is not set,
# we are not at Idiap,
# and so we don't have to set any additional variables.
if 'BASEDIRSETSHELL' not in os.environ:
return dict(os.environ)
assert 'BASEDIRSETSHELL' in os.environ
BASEDIRSETSHELL = os.environ['BASEDIRSETSHELL']
dosetshell = '%s/setshell/bin/dosetshell' % BASEDIRSETSHELL
......
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