run .bat file in directory potentially containing spaces

- The previous fix for the "install in Windows system directory" error would fail
   if the path includes directories with spaces in them. This fixes that.

- In addition, addressing the same issue in source installer, although not
	yet reported in wild.
This commit is contained in:
Lincoln Stein 2022-12-02 09:21:49 -05:00
parent 401165ba35
commit 34d6f35408
2 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,8 @@
@rem This enables a user to install this project without manually installing git or Python
PUSHD %~dp0
@rem change to the script's directory
PUSHD "%~dp0"
set "no_cache_dir=--no-cache-dir"
if "%1" == "use-cache" (

View File

@ -9,6 +9,9 @@
@rem This enables a user to install this project without manually installing conda and git.
@rem change to the script's directory
PUSHD "%~dp0"
echo "InvokeAI source installer..."
echo ""
echo "Some of the installation steps take a long time to run. Please be patient."