Comment 5 for bug 1187658

Revision history for this message
Pavel Savchenko (asfaltboy) wrote :

Not sure how to suggest a patch/pullrequest in Launchpad, but this is generally accepted to use the #!/usr/bin/env python shebang for an executable python script, and it works in a virtualenv.

For a more explicit definition it is possible to detect the python (i.e `which python`) during the package's setup.py. For example have a look at sphinx's setup.py (the setuptools's entry_points clause modifies the generic shebang to point to the actual python interpreter path). For more info on this technique see here: http://matthew-brett.github.io/pydagogue/installing_scripts.html