diff options
author | Morgan Creekmore <morgan@creekmore.email> | 2022-08-16 01:43:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 01:43:33 +0300 |
commit | d8e1bcd81c7e0456503caa381825c50d4956897a (patch) | |
tree | bfcca2f380af53dbdd31920dcdc04604c80c3f6e | |
parent | 5dbdde9760d5ffcbabf1af14aa66d22b5cf0cabc (diff) |
Fix finding the Python location if the %TEMP% path contains a space (#72683)
-rw-r--r-- | src/coreclr/build-runtime.cmd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/build-runtime.cmd b/src/coreclr/build-runtime.cmd index a958598d1aa..23762de8bd5 100644 --- a/src/coreclr/build-runtime.cmd +++ b/src/coreclr/build-runtime.cmd @@ -275,9 +275,9 @@ set __IntermediatesEventingDir=%__ArtifactsIntermediatesDir%\Eventing\%__TargetA REM Find python and set it to the variable PYTHON set _C=-c "import sys; sys.stdout.write(sys.executable)" -(py -3 %_C% || py -2 %_C% || python3 %_C% || python2 %_C% || python %_C%) > %TEMP%\pythonlocation.txt 2> NUL +(py -3 %_C% || py -2 %_C% || python3 %_C% || python2 %_C% || python %_C%) > "%TEMP%\pythonlocation.txt" 2> NUL set _C= -set /p PYTHON=<%TEMP%\pythonlocation.txt +set /p PYTHON=<"%TEMP%\pythonlocation.txt" if NOT DEFINED PYTHON ( echo %__ErrMsgPrefix%%__MsgPrefix%Error: Could not find a Python installation. |