Dne 2.12.2011 17:00, Simo Sorce napsal(a):
On Fri, 2011-12-02 at 15:50 +0100, Jan Cholasta wrote:
We currently use this hashbang line in IPA scripts:
#! /usr/bin/python -E
IMHO this should be changed to point to Python 2 binary specifically:
#! /usr/bin/python2 -E
for the sake of distros, which symlink /usr/bin/python to Python 3
binary by default (Fedora 17?).
Send a patch, but is python2 guaranteed to be always available (thinking
RHEL for example) ?
An option is to use distutils (setup.py) on all the scripts, as it
automatically changes the hashbang line to point to the correct interpreter.
Freeipa-devel mailing list