Skip to content

Commit 550041e

Browse files
committed
Fix 'shor configure' config not initialized bug
1 parent e9f4e12 commit 550041e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/shelloracle/bootstrap.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from prompt_toolkit.formatted_text import FormattedText
1313
from prompt_toolkit.shortcuts import confirm
1414

15-
from .config import get_config
1615
from .providers import Provider, Setting, list_providers, get_provider
16+
from .settings import Settings
1717

1818

1919
class UserError(Exception):
@@ -118,7 +118,8 @@ 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-
with get_config().filepath.open("w") as config_file:
121+
filepath = Settings.shelloracle_home / "config.toml"
122+
with filepath.open("w") as config_file:
122123
tomlkit.dump(config, config_file)
123124

124125

0 commit comments

Comments
 (0)