Commit 5c26d3a3 authored by Manuel Günther's avatar Manuel Günther

Removed warning on command line when executed outside Idiap.

parent eac5be4c
......@@ -19,6 +19,7 @@ def environ(context):
# It seems that we are in a hostile environment
# try to source the Idiap-wide shell
idiap_source = "/idiap/resource/software/initfiles/shrc"
if os.path.exists(idiap_source):
logger.debug("Sourcing: '%s'"%idiap_source)
try:
command = ['bash', '-c', 'source %s && env' % idiap_source]
......
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