Skip to content
Snippets Groups Projects
Commit b433176a authored by Papeleux Luc's avatar Papeleux Luc
Browse files

modification of runBatch function to really allow delayed start

parent 02fb2a26
No related branches found
No related tags found
No related merge requests found
......@@ -268,15 +268,20 @@ class ParametricJob(PRMSet):
cfgfile = self.guessProfile()
cfgFileName, cfgFileExtension = os.path.splitext(self.cfgfile)
import re
m = re.compile(cfgFileName+'([0-9]+)\.'+cfgFileExtension)
m = re.compile(cfgFileName+'([0-9]+)\\'+cfgFileExtension)
#print (cfgFileName+'([0-9]+)\\'+cfgFileExtension)
launchId = 0
#print (os.listdir('.'))
for fn in os.listdir('.'):
#print ("fn = ", fn)
out = m.search(fn)
#print (out)
if out :
outId = int(out.group(1))
if outId > launchId :
lauchId = outId
launchId +=1
if outId > launchId :
launchId = outId
launchId += 1
print ("launchId =", launchId)
os.system("cp %s %s%s%s"%(self.cfgfile, cfgFileName, launchId, cfgFileExtension))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment