by ersh · 8y ago · 0 comments
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...
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 {} ;I don't think people should be concerned about people that are that totally resistant to change.