MilhouseVH / bcmstat

Simple Raspberry Pi monitoring tool
GNU General Public License v2.0
263 stars 36 forks source link

Look for python2 rather than python. #3

Closed Freso closed 9 years ago

Freso commented 9 years ago

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).

MilhouseVH commented 9 years ago

Thanks, but resolving python3 incompatibility is a better fix than forcing a particular version of python.