Feb-08-2021, 09:20 PM
(Feb-07-2021, 10:09 PM)Gribouillis Wrote: Add it to $PATH, for example in the ~/.bashrc file, use
$PATH is not related to Python. It is the list of directories where the system looks for executable programs.
Output:export PATH="$HOME/.local/bin:$PATH"
I installed w1thermsensor and it ended up in directory '/home/pi/.local/bin'. If I'm only going to access w1thermsensor from a Python program wouldn't it be enough to append the directory to sys.path?