[LTP] [PATCH 1/2] *.py: Replace '#!/usr/bin/python3' with '#!/usr/bin/env python3'

Petr Vorel pvorel@suse.cz
Mon Apr 30 08:38:06 CEST 2018


Hi Cyril,

> Hi!
> > Couldn't it be solved by simple creating manually symlink python3 to /usr/bin ?
> > I'm not against changing schebang to using env, if causing troubles.
> > Cyril, what do you think?

> Well if it's causing problems for our users we should go ahead and
> change the shebangs to /usr/bin/env python3.
Simple linking solves that:
# ln -s /usr/local/bin/python3 /usr/bin
And this problem occurs only if you compile python3 from sources (and there are packages for
all major distros, including RHEL 6.9, which Xiao used - in his case it's EPEL repository).

Still want to me to change shebang to '/usr/bin/env python3' ?


Kind regards,
Petr


More information about the ltp mailing list