Some system may not have python installed in /usr/bin. Can we change it to /usr/bin/env python or @PYTHON@? I found this problem in tests/all-errors-documented.py.
I usually use "#!/usr/bin/env python". Is that the proper way to go?
(In reply to comment #1) > I usually use "#!/usr/bin/env python". Is that the proper way to go? Seems reasonable.
(In reply to comment #1) > I usually use "#!/usr/bin/env python". Is that the proper way to go? Some distribution uses python3 as python, so using "#!/usr/bin/env python2" may be better.
Created attachment 98686 [details] [review] stop hardcoding python's path in .py scripts
Comment on attachment 98686 [details] [review] stop hardcoding python's path in .py scripts Review of attachment 98686 [details] [review]: ----------------------------------------------------------------- Ship it.
Merged to master.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.