Make the detection of Python in the Visual Studio 2010 build more robust
diff --git a/Mkfiles/vc10/genperf/run.bat b/Mkfiles/vc10/genperf/run.bat
index 5827138..775f1d0 100644
--- a/Mkfiles/vc10/genperf/run.bat
+++ b/Mkfiles/vc10/genperf/run.bat
@@ -1,13 +1,24 @@
 cd ..\..\..

 @echo off

-for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Python.File\shell\open\command`) do (set _my_=%%f %%g)

-goto next%errorlevel%

 

-:next1

+for /f "usebackq tokens=1*" %%f in (`reg query HKCR\Applications\python.exe\shell\open\command`) 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)

+goto try2%errorlevel%

+

+:try20:

+goto ok

+

+:try21:

 echo Building without Python ...

 goto therest

 

-:next0

+:ok

 echo Building with Python ...

 set _res_=%_my_:*REG_SZ=%

 set _end_=%_res_:*exe"=%