shebang of average_nucleotide_identity.py seems to be subjective
See original GitHub issueJust a minor issue: I just installed the current version of pyani via pip. This version includes this shebang, which seems to point to a developers subjective python location:
#!/Users/lpritc/Development/GitHub/pyani/venv-pyani/bin/python
Maybe this should be changed to the more generally applicable #!/usr/bin/env python
or simply left out completely?
pyani Version: pyani-0.2.2
Python Version: 3.5.2
Operating System: Red Hat Linux
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Should I put #! (shebang) in Python scripts, and what form ...
The shebang line in any script determines the script's ability to be executed like a standalone executable without typing python beforehand in the...
Read more >How to Use the Shebang in Bash and Python - Linode
A Shebang directive, which always begins with the sequence #! , can sometimes be found on the first line of a Bash or...
Read more >On Python Shebangs – Michael Catanzaro's Blog
#!/usr/bin/env python seems to work today, but it's subtly very dangerous. Lovely. I don't even know what to recommend to upstream projects.
Read more >Support shebang #!/usr/bin/env python{2,3} #497 - GitHub
To get around the lack of support for this practice, it seems that the user has to add changes to each individual workspace...
Read more >Shebang (Unix) - Wikipedia
In computing, a shebang is the character sequence consisting of the characters number sign and exclamation mark ( #!) at the beginning of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for spotting and raising that!
It’s correct in the source: https://github.com/widdowquinn/pyani/blob/master/bin/average_nucleotide_identity.py and in the
.tar.gz
source downloadCreation of the
.egg
for distribution appears to have substituted the path that you see. I’ll get a corrected version out ASAP.I agree that it’s not an unresolvable issue for those familiar with the command-line and
Python
interpreter errors 😉Using
python average_nucleotide_identity.py
obviously works if you’re in a directory withaverage_nucleotide_identity.py
in it, but I’m hoping that publishing it as a script will enable even those who don’t realise such a thing is possible to use it.