On Thursday, February 9, 2023 at 7:43:38 AM UTC-5 [email protected] wrote:
> Can someone help me and tell me how to do thgis correctly  ?

the PYTHONPATH must be set to the weewx 'bin' directory.  in your case, 
that would be '/usr/share/weewx'.

given that your current directory is /usr/share/weewx, you can use either a 
relative path:

PYTHONPATH=..

or you can use the absolute path: 

PYTHONPATH=/usr/share/weewx

alternatively, you can use absolute path for everything, and thus be 
independent of where you do the invocation:

PYTHONPATH=/usr/share/weewx /usr/share/weewx/user/interceptor.py ...

-- 
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/eba48987-cbf1-4842-861e-73cb8bad4f7an%40googlegroups.com.

Reply via email to