79699451

Date: 2025-07-12 17:17:23
Score: 0.5
Natty:
Report link

./test.py
This is Linux syntax; Windows does not use /, but \

#!/usr/bin/env python
Again, Linux. As far as I know, it is ignored in Windows. Anyway, I would remove it.

All my (main) programs are called a.py (in different directories), in Windows, I start them just typing a (+Enter).

Because of the extension .py (file associations), Windows knows it should be opened by Python. Python makes the necessary steps during the installation, I suppose something went wrong.

Googled, not tested:
assoc .py=Python.File
ftype Python.File="C:\Path\To\python.exe" "%1" %*

Otherwise, uninstall and reinstall Python.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: kaksi