diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 7e4d5a61392..9cd4fb701e9 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -224,6 +224,9 @@ def run_extension_installer(extension_dir): if not os.path.isfile(path_installer): return + if args.skip_install: + return + try: env = os.environ.copy() env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env.get('PYTHONPATH', '')}" @@ -404,7 +407,8 @@ def prepare_environment(): run_pip(f"install -r \"{requirements_file}\"", "requirements") startup_timer.record("install requirements") - run_extensions_installers(settings_file=args.ui_settings_file) + if not args.skip_install: + run_extensions_installers(settings_file=args.ui_settings_file) if args.update_check: version_check(commit)