Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shebang env/bin/python makes no sense #5

Closed
onitake opened this issue Oct 26, 2018 · 2 comments
Closed

Shebang env/bin/python makes no sense #5

onitake opened this issue Oct 26, 2018 · 2 comments

Comments

@onitake
Copy link

onitake commented Oct 26, 2018

The interpreter specification env/bin/python won't do what it's supposed to on most Unix/GNU/Linux systems, as the path is neither absolute nor does it match a common location for the python binary.

For launching a script with the Python interpreter, the most common specification is:

#!/usr/bin/env python

The line is also listed on the Wikiepdia page: https://en.wikipedia.org/wiki/Shebang_(Unix)#Examples

Please fix this.

@smasty
Copy link
Owner

smasty commented Oct 28, 2018

It makes perfect sense if you follow the instructions and install the requirements to a virtualenv.
However, a new version of this tool is in the works, which will handle instllation differently.

@smasty smasty closed this as completed Oct 28, 2018
@onitake
Copy link
Author

onitake commented Oct 28, 2018

Good point, but not everybody uses virtualenv.

Also, all the resources I found concerning a virtualenv compatible shebang mention the line I posted above. Path mangling is managed happily by /usr/bin/env and it still makes no sense to put a relative path there.

But thanks for taking care of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants