"Bootstrap" python script in the Windows shell without .py / .pyw associations
- by PabloG
Sometimes (in customer's PCs) I need a python script to execute in the Windows shell like a .CMD or .BAT, but without having the .py or .pyw extensions associated with PYTHON / PYTHONW.
I came out with a pair of 'quick'n dirty' solutions:
1)
"""
e:\devtool\python\python.exe %0 :: or %PYTHONPATH%\python.exe
goto eof:
"""
# Python test
print…