overthesun / simoc-sam

Back-end system to support SIMOC Live air quality monitor sensor array as used at the SAM Mars habitat analog.
https://samb2.space/
2 stars 1 forks source link

Fallback on system `python` if the venv is missing. #73

Closed ezio-melotti closed 9 months ago

ezio-melotti commented 9 months ago

The sam alias defined in bash_aliases uses the python defined in the venv, whether that's necessary or not. This works fine for most commands, except create-venv, since the venv's python is not available and the command fails.

This PR tries to use the python defined in the venv, and if it doesn't exist it falls back on the system python.