try to read lists of files not wildcards

This commit is contained in:
Sebastian Wehling-Benatelli 2015-05-20 11:29:55 +02:00
parent 6dc0b206e9
commit b9ce5b4f41

View File

@ -69,10 +69,10 @@ def autoPyLoT(inputfile):
datapath = datastructure.expandDataPath()
if not parameter.hasParam('eventID'):
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(glob.glob(os.path.join(datapath, event, '*')))
print data
else:
data.setWFData([os.path.join(datapath, '*')])
data.setWFData(glob.glob(os.path.join(datapath, '*')))
print data