userpath
userpath copied to clipboard
Handle OSErrors when running show path commands
Bash may not always be installed, for example on OpenWrt, and attempting to call the show path commands for Bash will cause a FileNotFoundError
to be raised.
This wraps the subprocess call with a try statement and returns the empty string in the case of an OSError
.