I have a setup with a headless pi and the gravitrax bluetooth bridge.
I'd like to have a script running on boot, this script will wait for a button push.
When I push the button the program needs to connect to the gravitrax bridge, this uses a library I installed in a venv.
So my question is, how to activate the venv ?
Or is it better practise to have the venv active all the time?
is this possible on boot?
I'd like to have a script running on boot, this script will wait for a button push.
When I push the button the program needs to connect to the gravitrax bridge, this uses a library I installed in a venv.
So my question is, how to activate the venv ?
Or is it better practise to have the venv active all the time?
is this possible on boot?
Statistics: Posted by Rosemarije — Fri Feb 06, 2026 11:05 am