guysoft / CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
GNU General Public License v3.0
508 stars 146 forks source link

Check for python executables #133

Closed jsimonrichard closed 3 years ago

jsimonrichard commented 3 years ago

This PR should allow CustomPiOS to "just run" on systems that have a python3 executable instead of a python executable (like my own).

I only found usages of the host's python executable in argparse.py, so I've only made changes there. Let me know if I've missed anything.

guysoft commented 3 years ago

Thanma!

jsimonrichard commented 3 years ago

You're welcome!

One comment: I realized the which python commands will print their responses to stdout, and you might not want that. I'll just redirect them to /dev/null and add another PR.