Minor change to Python detection in the Visual Studio build to avoid spurious error message

This commit is contained in:
briangladman 2013-11-13 12:24:21 +00:00
parent 964fd9a016
commit aba12e73f4

View file

@ -1,14 +1,14 @@
cd ..\..\..
@echo off
for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Applications\python.exe\shell\open\command`) do (set _my_=%%f %%g)
for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Applications\python.exe\shell\open\command 2^>NUL`) do (set _my_=%%f %%g)
goto try1%errorlevel%
:try10
goto ok
:try11
for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Python.File\shell\open\command`) do (set _my_=%%f %%g)
for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Python.File\shell\open\command 2^>NUL`) do (set _my_=%%f %%g)
goto try2%errorlevel%
:try20: