On some distros (such as Arch Linux) python points to python3 rather than python2. This causes issues with the lint command, as cpplint.py doesn't seem to work on Python 3.
Simply replacing python with python2 won't work, as the default Windows installation doesn't have python2.exe, just python.exe, so a special case is needed.
Running plain python should work on macOS as well.
On some distros (such as Arch Linux)
python
points topython3
rather thanpython2
. This causes issues with thelint
command, ascpplint.py
doesn't seem to work on Python 3.Simply replacing
python
withpython2
won't work, as the default Windows installation doesn't havepython2.exe
, justpython.exe
, so a special case is needed.Running plain
python
should work on macOS as well.