File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ if 'RECO_NUM_NODES_OVERRIDE' in os.environ and os.environ['RECO_NUM_NODES_OVERRI
4848else :
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+
5157f = open (sys .argv [1 ], 'r' )
5258for 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 :
You can’t perform that action at this time.
0 commit comments