Skip to content

Commit

Permalink
fix AUTOMATIC1111#8492 breaking the program when the directory with c…
Browse files Browse the repository at this point in the history
…ode contains spaces.
  • Loading branch information
AUTOMATIC1111 authored and sergii.kostiuk committed Mar 22, 2023
1 parent 330bc54 commit 2a549b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,11 @@ def prepare_environment():
git_clone(blip_repo, repo_dir('BLIP'), "BLIP", blip_commit_hash)

if not is_installed("lpips"):
run_pip(f"install -r {os.path.join(repo_dir('CodeFormer'), 'requirements.txt')}", "requirements for CodeFormer")
run_pip(f"install -r \"{os.path.join(repo_dir('CodeFormer'), 'requirements.txt')}\"", "requirements for CodeFormer")

run_pip(f"install -r {os.path.join(script_path, requirements_file)}", "requirements for Web UI")
if not os.path.isfile(requirements_file):
requirements_file = os.path.join(script_path, requirements_file)
run_pip(f"install -r \"{requirements_file}\"", "requirements for Web UI")

run_extensions_installers(settings_file=args.ui_settings_file)

Expand Down

0 comments on commit 2a549b4

Please sign in to comment.