Skip to content

Commit

Permalink
Merge pull request #180 from nwinner/patch-1
Browse files Browse the repository at this point in the history
Patch: expanduser path
  • Loading branch information
utf authored Oct 14, 2022
2 parents 4326753 + 2502f33 commit e9b12c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/atomate2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def load_default_settings(cls, values):
config_file_path: str = values.get("CONFIG_FILE", _DEFAULT_CONFIG_FILE_PATH)

new_values = {}
if Path(config_file_path).exists():
new_values.update(loadfn(config_file_path))
if Path(config_file_path).expanduser().exists():
new_values.update(loadfn(Path(config_file_path).expanduser()))

new_values.update(values)
return new_values

0 comments on commit e9b12c0

Please sign in to comment.