oh-my-fish / theme-bobthefish

A Powerline-style, Git-aware fish theme optimized for awesome.
MIT License
1.44k stars 223 forks source link

Handle missing generic Python binary gracefully #289

Closed mzuther closed 3 years ago

mzuther commented 3 years ago

Hi!

My Linux Mint 20 system doesn't have a generic Python binary (/usr/bin/python) anymore. This fix handles this situation gracefully but still prefers an existing generic Python binary.

Happy new year! :)

Martin

mzuther commented 3 years ago

Thanks for the comment!

However, I have found that the missing python executable in Linux Mint was not the culprit.

My problem lay elsewhere: a virtualenv environment seems to have broken all of a sudden. On re-creation, a python binary was created by virtualenv.

So my PR would hide such a problem and might lead to a wrong display and thus confused users. So I suggest dropping this PR.