Commit f5c6f5ad authored by Lukas Weber's avatar Lukas Weber
Browse files

fix automatic deduction of system type

parent a39736e8
......@@ -52,19 +52,19 @@ def generate_batchscript(sysinfo, *args):
if sysinfo == 'claix18':
return generate_batchscript_claix18(*args)
raise Exception('unknown system type {}'.format(sysinfo))
raise Exception('unknown system type "{}"'.format(sysinfo))
def determine_system():
sysinfo = os.environ.get('MCLL_SYSTEM_INFO')
if sysinfo == "":
if sysinfo == None:
import socket
hostname = socket.gethostname()
if hostname.endswith(''):
sysinfo = 'claix18'
if not sysinfo in valid_systems:
sysinfo = 'local'
raise Exception('unknown system type "{}"'.format(sysinfo))
return sysinfo
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