If you want to keep copying things into /usr/local/bin and chmod'ing them
there, lines 128 and 142 of
https://github.com/roe-dl/weewx-DWD/blob/master/install.py need to be
changed to always use sudo
This assumes the user can use sudo, but a weewx pip user is already assumed
to be able to do that so they can run the commands to install the system
startup file and the like. For a packaged installation it 'should' work
the same but you'd need to test that of course.
Something like:
os.system("sudo some_command_here")
or the subprocess way to do it per
https://docs.python.org/3/library/subprocess.html
On Tuesday, July 16, 2024 at 1:14:52 AM UTC-7 Karen K wrote:
> [email protected] schrieb am Dienstag, 16. Juli 2024 um 09:39:11 UTC+2:
>
> bin/user?
>
>
> You need a directory for that purpose that is included in $PATH. Otherwise
> the shell does not find the script. And bin/user is not.
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" 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-user/a79e621f-df2a-4616-a909-bef2b21c47dcn%40googlegroups.com.