bugfix: searching event directory
This commit is contained in:
parent
9a4677c794
commit
bd10f7b61e
@ -67,7 +67,7 @@ def autoPyLoT(inputfile):
|
|||||||
# process each event in database
|
# process each event in database
|
||||||
datapath = datastructure.expandDataPath()
|
datapath = datastructure.expandDataPath()
|
||||||
if not parameter.hasParam('eventID'):
|
if not parameter.hasParam('eventID'):
|
||||||
for event in glob.glob(os.path.join(datapath, '*')):
|
for event in [events for events in glob.glob(os.path.join(datapath, '*')) if os.path.isdir(events)]:
|
||||||
data.setWFData(os.path.join(datapath, event, '*'))
|
data.setWFData(os.path.join(datapath, event, '*'))
|
||||||
print data
|
print data
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user