Python script problem when starting raspberry

Hello,

When I start my python script when starting the raspberry, it does not work properly.
After much research my problem is that the function in the python script does not work:
import grove_hightemperature_sensor as grovepi.
For information, the script works when I use the python program under the desktop, but does not work when I ask it either in the rc.local, or init.d and systemd.
The function does not seem to be called.
Would anyone have an idea to help me.
thank you

Hi @Tetradon,

Can you show us what script are you talking about?

Thank you!