Does windows edit .py file shebangs?

Barry Scott barry at barrys-emacs.org
Fri Jan 1 11:39:56 EST 2021


I found python scripts have had their shebang lines edited behind my back.

The shebang line I'm seeing is:

    #!C:\Users\barry\AppData\Local\Microsoft\WindowsApps\python3.EXE

Is this Microsoft being "helpful"?
Does anyone know what I will have done to best with this "help"?

What do I need to do to prevent this happening?

Barry



More information about the Python-list mailing list