bugfix: searching event directory

This commit is contained in:
Sebastian Wehling-Benatelli 2015-05-20 10:58:48 +02:00
parent 9a4677c794
commit bd10f7b61e

View File

@ -67,7 +67,7 @@ def autoPyLoT(inputfile):
# process each event in database
datapath = datastructure.expandDataPath()
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, '*'))
print data
else: