Skip to content

Commit

Permalink
Fallback to stem if suffix does not exist
Browse files Browse the repository at this point in the history
This will allow `.env` files to work as expected

Co-authored-by: fisher60 <[email protected]>
  • Loading branch information
GDWR and fisher60 committed May 12, 2022
1 parent bc00976 commit 066f5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classy_config/loader/auto_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def auto_loader(filepath: Path) -> MutableMapping[str, Any]:
:param filepath:
:return:
"""
resolved_parser = __parser_mapping[filepath.suffix]
resolved_parser = __parser_mapping[filepath.suffix or filepath.stem]
return resolved_parser(filepath)


Expand Down

0 comments on commit 066f5c4

Please sign in to comment.