Skip to content

Commit

Permalink
Create parent directories for the configuration file if they're missi…
Browse files Browse the repository at this point in the history
…ng (#78)
  • Loading branch information
Julien Simon committed Jul 25, 2024
1 parent 083ed0f commit a2e2a55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arcee/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def write_configuration_value(key: str, value: str) -> None:
except json.JSONDecodeError:
pass
else:
conf_path.parent.mkdir(parents=True, exist_ok=True)
conf_path.touch()

config[key] = value
Expand Down

0 comments on commit a2e2a55

Please sign in to comment.