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:
Lincoln Stein
2024-03-16 22:25:19 -04:00
committed by psychedelicious
parent 8cd65755ef
commit d871fca643
5 changed files with 24 additions and 11 deletions

View File

@ -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
"""