Skip to content

Commit

Permalink
mute unneeded SDXL imports for tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Jul 13, 2023
1 parent a04c955 commit b717eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/launch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,6 @@ def prepare_environment():
if args.update_all_extensions:
git_pull_recursive(extensions_dir)

mute_sdxl_imports()

if "--exit" in sys.argv:
print("Exiting because of --exit argument")
exit(0)
Expand All @@ -357,6 +355,8 @@ def configure_for_tests():


def start():
mute_sdxl_imports()

print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}")
import webui
if '--nowebui' in sys.argv:
Expand Down

0 comments on commit b717eb7

Please sign in to comment.