fix(config): revised config methods

- `write_file` requires an destination file path
- `read_config` -> `merge_from_file`, if no path is provided, reads from `self.init_file_path`
- update app, tests to use new methods
- fix configurator, was overwriting config file data unexpectedly
This commit is contained in:
psychedelicious
2024-03-12 01:45:12 +11:00
parent 5e39e46954
commit f69938c6a8
4 changed files with 36 additions and 38 deletions

View File

@ -5,7 +5,7 @@ from invokeai.app.services.config.config_default import get_config
app_config = get_config()
app_config.parse_args()
app_config.read_config()
app_config.merge_from_file()
if True: # hack to make flake8 happy with imports coming after setting up the config
import asyncio