diff --git a/classy_config/config.py b/classy_config/config.py index 6ef8832..bcfb3f3 100644 --- a/classy_config/config.py +++ b/classy_config/config.py @@ -33,7 +33,7 @@ def register_config( if isinstance(filepath, str): filepath = Path(filepath) - if not filepath.exists(): + if not filepath.match("*.env") and not filepath.exists(): raise FileNotFoundError(filepath) raw_config = loader(filepath)