Skip to content

Commit

Permalink
flatten default config
Browse files Browse the repository at this point in the history
  • Loading branch information
ahalev committed Jul 25, 2024
1 parent e18a1e9 commit 9ba3553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expfig/fig.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, config=None, default=DEFAULT_CONFIG_PATH, track_sources=True,

def _parse_default(self, config, default):
if api.is_dict_like(default):
return default
return unflatten(default)

candidates = [Path(default), (Path(sys.argv[0]).parent / default)]

Expand Down

0 comments on commit 9ba3553

Please sign in to comment.