I really don't like the idea of messing with profiles, especially system profiles. There is nothing standard about them.
Understanding how paths work is fundamental to using command lines. We will just have to insist that users learn this minimum, especially if they are doing a setup.py install. If they can't handle that, they should do a package install. On Tue, Apr 20, 2021 at 7:56 AM Vince Skahan <[email protected]> wrote: > 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 > <https://groups.google.com/d/msgid/weewx-development/2e6e6184-121b-42cc-b59f-159052f27953n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEDQOU-ZT_YAL3gKdrqP04nja%3DP2SPOGpFAntXVo_DgijQ%40mail.gmail.com.
