From 34d6f354088d6948b31ee6b0c057d7a2910c6742 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 2 Dec 2022 09:21:49 -0500 Subject: [PATCH] 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. --- binary_installer/install.bat.in | 3 ++- source_installer/install.bat.in | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/binary_installer/install.bat.in b/binary_installer/install.bat.in index e8a3ea0c8d..d2c8b49096 100644 --- a/binary_installer/install.bat.in +++ b/binary_installer/install.bat.in @@ -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" ( diff --git a/source_installer/install.bat.in b/source_installer/install.bat.in index 7f443b8351..ad05668e32 100644 --- a/source_installer/install.bat.in +++ b/source_installer/install.bat.in @@ -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."