diff --git a/modules/aeolus/datasource.py b/modules/aeolus/datasource.py index f6182625705f1b299e83fcbe145db4dfe6f9469a..c2c027a5f072e2ada3d646d0d8d1dd848248b279 100644 --- a/modules/aeolus/datasource.py +++ b/modules/aeolus/datasource.py @@ -78,12 +78,12 @@ def get_parameters_fmwk_amvs(filename='/ships19/cloud/scratch/4TH_AMV_INTERCOMPA class Files: def __init__(self, files_path, file_time_span, pattern): + self.flist = [] if os.path.isdir(files_path): - self.flist = [] for path in Path(files_path).rglob(pattern): self.flist.append(path) else: - self.flist = glob.glob(files_path + pattern) + self.flist.append(files_path) if len(self.flist) == 0: raise GenericException('no matching files found in: ' + files_path + pattern)