Skip to content

Commit 5dd0a02

Browse files
committed
Fix shelloracle home folder not existing
1 parent 3e38ec4 commit 5dd0a02

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/shelloracle/bootstrap.py

-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def write_shelloracle_config(provider: type[Provider], settings: dict[str, Any])
118118
provider_configuration_table.add(setting, value)
119119
provider_table.add(provider.name, provider_configuration_table)
120120

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

src/shelloracle/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
logger = logging.getLogger(__name__)
1717
shelloracle_home = Path.home() / ".shelloracle"
18+
shelloracle_home.mkdir(exist_ok=True)
1819

1920

2021
class Configuration(Mapping):

0 commit comments

Comments
 (0)