Run astra S with startup script

I have a startup script that run a python program to access the astra S data… The process actually hang there.
I can run the run program without any problem when I run in terminal.
I am suspecting the USB priority is not set.
Anyone can show e how to set the astra S USB proirity?
Thank you and best regards