From c5c85b009c0c8d06ab46ec145e1ac5b046da14e3 Mon Sep 17 00:00:00 2001 From: Taegyun Ha <110908525+DevTGHa@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:06:04 +0000 Subject: [PATCH] Fix issue with ocio_depts handling spaces in file paths (#2109) 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 )