noseglasses / elf_diff

A tool to compare ELF binaries
GNU General Public License v3.0
171 stars 21 forks source link

Generalize python executable location #2

Closed gedankenexperimenter closed 3 years ago

gedankenexperimenter commented 5 years ago

Since /usr/bin/python isn't necessarily the path to the user's desired version of Python (e.g. using Python v3 on macOS), it's generally better to get it indirectly via /usr/bin/env.

I had some trouble getting this working until I figured out that it was running /usr/bin/python, which is not the version that I use on my iMac (/usr/bin/python is the one provided by Apple; the version installed by Homebrew, which comes first in $PATH, is elsewhere.