mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(config): split out parse_args
and read_config
logic from get_config
Having this all in the `get_config` function makes testing hard. Move these two functions to their own methods, and call them on app startup explicitly.
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
from invokeai.app.services.config.config_default import get_config
|
||||
|
||||
app_config = get_config()
|
||||
app_config.parse_args()
|
||||
app_config.read_config()
|
||||
|
||||
if True: # hack to make flake8 happy with imports coming after setting up the config
|
||||
import asyncio
|
||||
|
Reference in New Issue
Block a user