mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
partially address --root CLI argument handling
- fix places where `get_config()` is being called at import time rather than at run time. - add regression test for import time get_config() calling.
This commit is contained in:
committed by
psychedelicious
parent
8cd65755ef
commit
d871fca643
@ -30,11 +30,11 @@ class InvokeAIArgs:
|
||||
Example:
|
||||
```
|
||||
# In a CLI wrapper
|
||||
from invokeai.frontend.cli.app_arg_parser import InvokeAIArgs
|
||||
from invokeai.frontend.cli.arg_parser import InvokeAIArgs
|
||||
InvokeAIArgs.parse_args()
|
||||
|
||||
# In the application
|
||||
from invokeai.frontend.cli.app_arg_parser import InvokeAIArgs
|
||||
from invokeai.frontend.cli.arg_parser import InvokeAIArgs
|
||||
args = InvokeAIArgs.args
|
||||
"""
|
||||
|
||||
|
Reference in New Issue
Block a user