svn path=/trunk/yasm/; revision=2230
cd ..\..\..\r
@echo off\r
-reg query HKCR\Python.File\shell\open\command >nul: 2>&1\r
+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)\r
goto answer%errorlevel%\r
:answer0\r
echo ... building with Python ...\r
@echo on\r
-modules\arch\x86\gen_x86_insn.py\r
+call run_py.bat modules\arch\x86\gen_x86_insn.py\r
+del run_py.bat\r
@echo off\r
goto end\r
:answer1\r