Skip to content

Commit 0fe9c55

Browse files
committed
Topology parser: Add option to use local build on EPN shared home
1 parent fa969a7 commit 0fe9c55

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DATA/tools/parse

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ if 'RECO_NUM_NODES_OVERRIDE' in os.environ and os.environ['RECO_NUM_NODES_OVERRI
4848
else:
4949
reco_num_nodes_override = 0
5050

51+
modulecmd = ""
52+
if 'GEN_TOPO_OVERRIDE_MODULE_DIR' in os.environ:
53+
mod.module('unuse', '/opt/alisw/el8/modulefiles')
54+
mod.module('use', os.environ['GEN_TOPO_OVERRIDE_MODULE_DIR'])
55+
modulecmd += ' module unuse /opt/alisw/el8/modulefiles 2>&1 ; module use ' + os.environ['GEN_TOPO_OVERRIDE_MODULE_DIR'] + ' 2>&1 ; '
56+
5157
f = open(sys.argv[1], 'r')
5258
for line in f:
5359
line = line.strip()
@@ -185,7 +191,7 @@ for line in f:
185191
if 'GEN_TOPO_STDERR_LOGGING' in os.environ and int(os.environ['GEN_TOPO_STDERR_LOGGING']):
186192
odccommand += ' --mon tools/monitoring_workflows/epnstderrlog.xml'
187193
if args[1] != '':
188-
odccommand += ' --prependexe "module load ' + args[1] + ' 2>&1 ; "'
194+
odccommand += ' --prependexe "' + modulecmd + ' module load ' + args[1] + ' 2>&1 ; "'
189195
odccommand += ' -o ' + sys.argv[3]
190196
print('Running ODC command', odccommand)
191197
if os.system(odccommand) != 0:

0 commit comments

Comments
 (0)