Two changes to command-line scripts

- installer - use correct entry point for invokeai-configure
- model merge script - prevent error when `--root` not provided
This commit is contained in:
Lincoln Stein 2023-08-10 20:59:22 -04:00
parent 591838a84b
commit f851ad7ba0
2 changed files with 3 additions and 2 deletions

View File

@ -348,7 +348,7 @@ class InvokeAiInstance:
introduction() introduction()
from invokeai.frontend.install import invokeai_configure from invokeai.frontend.install.invokeai_configure import invokeai_configure
# NOTE: currently the config script does its own arg parsing! this means the command-line switches # NOTE: currently the config script does its own arg parsing! this means the command-line switches
# from the installer will also automatically propagate down to the config script. # from the installer will also automatically propagate down to the config script.

View File

@ -382,7 +382,8 @@ def run_cli(args: Namespace):
def main(): def main():
args = _parse_args() args = _parse_args()
config.parse_args(["--root", str(args.root_dir)]) if args.root_dir:
config.parse_args(["--root", str(args.root_dir)])
try: try:
if args.front_end: if args.front_end: