diff --git a/nomenclature/codelist.py b/nomenclature/codelist.py index d61aef09..7cb39948 100644 --- a/nomenclature/codelist.py +++ b/nomenclature/codelist.py @@ -617,9 +617,7 @@ def from_directory( # importing from an external repository for repo in config.definitions.region.repositories: repo_path = ( - config.repositories[repository].local_path - / "definitions" - / "region" + config.repositories[repo].local_path / "definitions" / "region" ) code_list = cls._parse_region_code_dir(