try to read lists of files not wildcards
This commit is contained in:
parent
6dc0b206e9
commit
b9ce5b4f41
@ -69,10 +69,10 @@ def autoPyLoT(inputfile):
|
|||||||
datapath = datastructure.expandDataPath()
|
datapath = datastructure.expandDataPath()
|
||||||
if not parameter.hasParam('eventID'):
|
if not parameter.hasParam('eventID'):
|
||||||
for event in [events for events in glob.glob(os.path.join(datapath, '*')) if os.path.isdir(events)]:
|
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
|
print data
|
||||||
else:
|
else:
|
||||||
data.setWFData([os.path.join(datapath, '*')])
|
data.setWFData(glob.glob(os.path.join(datapath, '*')))
|
||||||
print data
|
print data
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user