We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
xtl.toml
1 parent 36fbd15 commit 5108f0cCopy full SHA for 5108f0c
src/xtl/config/settings.py
@@ -216,6 +216,12 @@ def initialize(cls) -> 'XTLSettings':
216
else:
217
print(f'No local or global {cls._toml} found, initializing with defaults.')
218
_settings = cls()
219
+ try:
220
+ _settings.to_toml(filename=cls.global_config, comments=True)
221
+ print(f'Saved as global config: {cls.global_config}')
222
+ except Exception as e:
223
+ raise Exception(f'Failed to save global config: '
224
+ f'{cls.global_config}') from e
225
226
# Check settings version
227
_v = version_from_str(_settings.version)
0 commit comments