Same for multiple event processing.

This commit is contained in:
Ludger Küperkoch 2015-10-27 16:53:11 +01:00
parent 6676484a61
commit 43d243e0a1

View File

@ -119,11 +119,12 @@ def autoPyLoT(inputfile):
filedata = None filedata = None
nllfile = open(locfile, 'r') nllfile = open(locfile, 'r')
filedata = nllfile.read() filedata = nllfile.read()
# replace old command if filedata.find(locfiles) < 0:
filedata = filedata.replace('LOCFILES', locfiles) # replace old command
nllfile = open(locfile, 'w') filedata = filedata.replace('LOCFILES', locfiles)
nllfile.write(filedata) nllfile = open(locfile, 'w')
nllfile.close() nllfile.write(filedata)
nllfile.close()
# locate the event # locate the event
subprocess.call([nlloccall, locfile]) subprocess.call([nlloccall, locfile])