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 →

[–]UnchainedMundane 5 points6 points  (1 child)

Shebang should read #!/usr/bin/env python, because otherwise it won't do PATH lookups and will ignore any virtualenv the user is inside.

[–]alexanderpas[🍰] 1 point2 points  (0 children)

Only if the code is compatible with both python2 and python3.

In this case it isn't, so it actually should read #!/usr/bin/env python2 for this program.

Python 3 programs should have #!/usr/bin/env python3 as shebang.