diff --git a/modules/aeolus/datasource.py b/modules/aeolus/datasource.py index 0528e603af5c6a3f385c3a65645c6df0c47a97c2..1b28b15cf9a961f949cb0ed7e76e606a51b81819 100644 --- a/modules/aeolus/datasource.py +++ b/modules/aeolus/datasource.py @@ -83,7 +83,7 @@ class Files: if os.path.isdir(files_path): for path in Path(files_path).rglob(pattern): self.flist.append(path) - elif fnmatch.fnmatch(files_path, pattern): + elif fnmatch.fnmatch(os.path.basename(files_path), pattern): self.flist.append(files_path) if len(self.flist) == 0: raise GenericException('no matching files found in: ' + files_path + ' matching: ' + pattern)