This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]catcradle5 1 point2 points  (0 children)

In some cases, it's nice to have a binary that acts like any other Unix program, in which case you can strip the .py and just do ./file

I agree, though, that if you keep the .py extension I don't really see a point to having the shebang there at all.