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

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
dosetshell = '%s/setshell/bin/dosetshell' % BASEDIRSETSHELL
Supports Markdown
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