Skip to content

Commit

Permalink
Fix shelloracle home folder not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
djcopley committed Apr 27, 2024
1 parent 3e38ec4 commit 5dd0a02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/shelloracle/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def write_shelloracle_config(provider: type[Provider], settings: dict[str, Any])
provider_configuration_table.add(setting, value)
provider_table.add(provider.name, provider_configuration_table)

shelloracle_home.mkdir(exist_ok=True)
with Configuration.filepath.open("w") as config_file:
tomlkit.dump(config, config_file)

Expand Down
1 change: 1 addition & 0 deletions src/shelloracle/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

logger = logging.getLogger(__name__)
shelloracle_home = Path.home() / ".shelloracle"
shelloracle_home.mkdir(exist_ok=True)


class Configuration(Mapping):
Expand Down

0 comments on commit 5dd0a02

Please sign in to comment.