Skip to content

Commit d1ea8b1

Browse files
authored
Two changes to command-line scripts (#4235)
During install testing I discovered two small problems in the command-line scripts. These are fixed. ## What type of PR is this? (check all applicable) - [X Bug Fix ## Have you discussed this change with the InvokeAI team? - [X] Yes - ## Have you updated all relevant documentation? - [X] Yes ## Description - installer - use correct entry point for invokeai-configure - model merge script - prevent error when `--root` not provided
2 parents 591838a + f851ad7 commit d1ea8b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

installer/lib/installer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def configure(self):
348348

349349
introduction()
350350

351-
from invokeai.frontend.install import invokeai_configure
351+
from invokeai.frontend.install.invokeai_configure import invokeai_configure
352352

353353
# NOTE: currently the config script does its own arg parsing! this means the command-line switches
354354
# from the installer will also automatically propagate down to the config script.

invokeai/frontend/merge/merge_diffusers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ def run_cli(args: Namespace):
382382

383383
def main():
384384
args = _parse_args()
385-
config.parse_args(["--root", str(args.root_dir)])
385+
if args.root_dir:
386+
config.parse_args(["--root", str(args.root_dir)])
386387

387388
try:
388389
if args.front_end:

0 commit comments

Comments
 (0)