We continue to see 'many' posts where new unix/linux users simply don't
understand $PATH and how to get the non-standard /home/weewx/bin location
into their $PATH.
A quick fix would be to add a file to /etc/profile.d with the following
contents. I called mine /etc/profile.d/weewx-path.sh, but any name ending
in .sh will work.
Tests ok on debian and raspian for me.
# if we find the daemon in the setup.py location
# then append the setup.py bindir to $PATH
if [ -e /home/weewx/bin/weewxd ] ; then
PATH=$PATH:/home/weewx/bin
fi
Is this something we can add to weewx possibly ? Add one file to the
sources and one line to setup.py to install it.
I'd be happy to do a PR if that'll help.
Thoughts ?
--
You received this message because you are subscribed to the Google Groups
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-development/2e6e6184-121b-42cc-b59f-159052f27953n%40googlegroups.com.