You are not logged in.
My old python scripts wont work becaulse of the "/usr/bin/env python" shabang line. How to safely change this, so that i wont have to replace shabang in all my scripts to "/usr/bin/env python2"?
Thanx
Offline
Change to a distro that uses python2 as /usr/bin/python.
Offline
You can use sed to easily do the replacing.
Offline
Thanx. Problem is - next time i try a new distro (as Allan suggested), I'll have to replace them again. Is there some other way?
Offline
Offline
When this gets moved from draft, you can tell the other distro to provide a python2 symlink (or just do it yourself) - http://www.python.org/dev/peps/pep-0394/
Offline
2karol: thanx. I saw it, but didnt read it carefully.
Offline