From: Brian Gladman Date: Wed, 12 Aug 2009 14:33:52 +0000 (-0000) Subject: improve handling of Python batch file for genperf X-Git-Tag: v1.0.0~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de776f46eafeae1ea166c7d60137d9224d09c5db;p=yasm improve handling of Python batch file for genperf svn path=/trunk/yasm/; revision=2230 --- diff --git a/Mkfiles/vc9/genperf/run.bat b/Mkfiles/vc9/genperf/run.bat index 64ec1ae3..04b07940 100644 --- a/Mkfiles/vc9/genperf/run.bat +++ b/Mkfiles/vc9/genperf/run.bat @@ -1,11 +1,12 @@ cd ..\..\.. @echo off -reg query HKCR\Python.File\shell\open\command >nul: 2>&1 +for /f "usebackq tokens=2,3,4" %%f in (`reg query HKCR\Python.File\shell\open\command`) do (if %%f==REG_SZ echo %%g %%h >run_py.bat) goto answer%errorlevel% :answer0 echo ... building with Python ... @echo on -modules\arch\x86\gen_x86_insn.py +call run_py.bat modules\arch\x86\gen_x86_insn.py +del run_py.bat @echo off goto end :answer1