From efbb8bb4b271a6003f31a71f64be61e38756620b Mon Sep 17 00:00:00 2001 From: Taegyun Ha Date: Tue, 17 Dec 2024 16:04:38 +0000 Subject: [PATCH] Fix issue with ocio_depts handling spaces in file paths Signed-off-by: Taegyun Ha --- share/dev/windows/ocio.bat | 2 +- share/dev/windows/ocio_deps.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/dev/windows/ocio.bat b/share/dev/windows/ocio.bat index 9dd42745be..df0d1a81dc 100644 --- a/share/dev/windows/ocio.bat +++ b/share/dev/windows/ocio.bat @@ -77,7 +77,7 @@ if NOT "%~1"=="" ( rem If not overridden by the cmd line args, find and use the latest Visual Studio if NOT DEFINED MSVS_PATH ( - for /f %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -format value -property installationPath -latest') do ( + for /f "delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -format value -property installationPath -latest') do ( echo Found Visual Studio installation at '%%i' set MSVS_PATH=%%i ) diff --git a/share/dev/windows/ocio_deps.bat b/share/dev/windows/ocio_deps.bat index c616bebf5a..4c567954ba 100644 --- a/share/dev/windows/ocio_deps.bat +++ b/share/dev/windows/ocio_deps.bat @@ -105,7 +105,7 @@ if ErrorLevel 1 ( echo Checking for Microsoft Visual Studio... set MSVS_PATH= -for /f %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -format value -property installationPath -latest') do ( +for /f "delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -format value -property installationPath -latest') do ( echo Found Visual Studio installation at '%%i' set MSVS_PATH=%%i )