X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/predictops.git/blobdiff_plain/2c5695839a5064f584ffeaba557020ab3270b7b9..4b6d71d96bb92791cc31640e5f30378ae6fe63e4:/predictops/source/source.py?ds=inline diff --git a/predictops/source/source.py b/predictops/source/source.py index 714ed12..8e68716 100644 --- a/predictops/source/source.py +++ b/predictops/source/source.py @@ -17,7 +17,7 @@ class Source: csv_files = Path.cwd() / 'config' / 'features' list_of_names = [] for csv_file in listdir(csv_files): - with open(csv_file, "r") as f: + with open(csv_files / csv_file, "r") as f: reader = DictReader(f, delimiter=',') list_of_names.extend([row['name'] for row in reader]) if len(list_of_names) != len(set(list_of_names)):