Anyone know if /usr/bin/python will point to python3?
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPytho...
~ ls -las /usr/bin/python
0 lrwxrwxrwx 1 root root 7 Jan 5 02:36 /usr/bin/python -> python3My latest (!) stable Fedora still points at py2:
~ $ ls -als /usr/bin/python
0 lrwxrwxrwx. 1 root root 7 Mar 14 14:36 /usr/bin/python -> python2*The new scripts should just use the right #! string
#!/usr/bin/env python2
There, fixed it.Much like `#!/usr/bin/env bash` for bash scripts instead of `#!/bin/bash` (which won't work on many OSes)
https://github.com/search?q=%23%21%2Fusr%2Fbin%2Fenv+python2...
I don't think people should be concerned about people that are that totally resistant to change.
Of course you can. Python files are plaintext.
$ find ./some/module -name "*.py" -exec sed -e 's:#!/usr/bin/python:#!/usr/bin/env python2:g' -i {} ;