Commit b717eb7e authored by AUTOMATIC1111's avatar AUTOMATIC1111

mute unneeded SDXL imports for tests too

parent a04c9551
...@@ -334,8 +334,6 @@ def prepare_environment(): ...@@ -334,8 +334,6 @@ def prepare_environment():
if args.update_all_extensions: if args.update_all_extensions:
git_pull_recursive(extensions_dir) git_pull_recursive(extensions_dir)
mute_sdxl_imports()
if "--exit" in sys.argv: if "--exit" in sys.argv:
print("Exiting because of --exit argument") print("Exiting because of --exit argument")
exit(0) exit(0)
...@@ -357,6 +355,8 @@ def configure_for_tests(): ...@@ -357,6 +355,8 @@ def configure_for_tests():
def start(): def start():
mute_sdxl_imports()
print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}") print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}")
import webui import webui
if '--nowebui' in sys.argv: if '--nowebui' in sys.argv:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment