All modern systems have python2, python3, and python. Some systems have python point to python2, while others have it point to python3. The script doesn't work under Python 3, so this allows it to explicitly look for Python 2 rather than whatever Python happens to be the "main" Python of the current system.
See e.g. how the PKGBUILD in the AUR does sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' bcmstat.sh to make the script run under ArchLinux (ARM).
All modern systems have
python2
,python3
, andpython
. Some systems havepython
point topython2
, while others have it point topython3
. The script doesn't work under Python 3, so this allows it to explicitly look for Python 2 rather than whatever Python happens to be the "main" Python of the current system.See e.g. how the PKGBUILD in the AUR does
sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' bcmstat.sh
to make the script run under ArchLinux (ARM).