From b9ce5b4f41c41e0f9ccfe1df12348a8e5b05a545 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 20 May 2015 11:29:55 +0200 Subject: [PATCH] try to read lists of files not wildcards --- autoPyLoT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoPyLoT.py b/autoPyLoT.py index 560453e8..9128cfb1 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -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