|
|
Subscribe / Log in / New account

Shebang lines for Python on Windows

Shebang lines for Python on Windows

Posted Sep 26, 2022 14:05 UTC (Mon) by agateau (subscriber, #57569)
In reply to: Shebang lines for Python on Windows by rschroev
Parent article: Arch Linux drops Python 2

Interesting. I never used py.exe. That can be handy, but it would not have helped in my case. We were using Python in our CI and the assumption was: since we start the script from Git Bash, the shebang is going to work properly, because Bash knows about shebangs. And indeed it does, but we still could not write "#!/usr/bin/env python3" because there was no python3.exe file (until we created one by copying python.exe to python3.exe, meh).

I still believe being able to reliably depend on the availability of a python3 binary on all supported platforms would have helped a lot.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds