aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrianGladman <riemannic@gmail.com>2012-11-06 09:16:28 +0000
committerBrianGladman <riemannic@gmail.com>2012-11-06 09:16:28 +0000
commit607feba6d98bf549513e4eaa21445328f9c2b834 (patch)
tree3551221f22d11ebbf7ea42c234e7a2359a4e6873
parent1db998a3d35377f96744cf596bc904461eda796b (diff)
downloadyasm-607feba6d98bf549513e4eaa21445328f9c2b834.tar.gz
Make the detection of Python in the Visual Studio 2010 build more robust
-rw-r--r--Mkfiles/vc10/genperf/run.bat17
1 files changed, 14 insertions, 3 deletions
diff --git a/Mkfiles/vc10/genperf/run.bat b/Mkfiles/vc10/genperf/run.bat
index 5827138b..775f1d0a 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\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 next%errorlevel%
+goto try2%errorlevel%
+
+:try20:
+goto ok
-:next1
+:try21:
echo Building without Python ...
goto therest
-:next0
+:ok
echo Building with Python ...
set _res_=%_my_:*REG_SZ=%
set _end_=%_res_:*exe"=%