convert init.d to systemd, how to determine which python is installed

Michal Schmidt mschmidt at redhat.com
Thu Nov 3 14:32:15 UTC 2011


On 11/03/2011 03:10 PM, Kaleb S. KEITHLEY wrote:
> In order to work on, e.g. RHEL6 in addition to Fedora, the old init
> script has:
> ...
> vercmd="from distutils.sysconfig import get_python_lib; print
> get_python_lib()"
> py_dir=$(python -c "${vercmd}")
> exe="${py_dir}/hekafsd.py"

But the path is already known during the build of the package, isn't it?

Michal


More information about the devel mailing list