@echo off REM set PythonDIR to your python 2 or 3 install path; e.g. the folder with python.exe in it. set PythonDIR=C:\Python27 set PATH=%PythonDIR%;%PythonDIR%\Scripts;%PATH% set PYTHONPATH=%PythonDIR%\Lib;%PythonDIR%\Lib\site-packages;%PythonDIR%\DLLs; set PATHEXT=%PATHEXT%;.PY;.PYW assoc .py=Python.File assoc .pyw=PythonW.File ftype Python.File=%PythonDIR%\python.exe "%1" %* ftype PythonW.File=%PythonDIR%\pythonw.exe "%1" %*