Running venv activate _and_ script from bash

This is not a Parrot Olympe problem, but maybe somebody could share some knowledge.

In order to launch an Olympe script this is necessary:

source ~/parrot-groundsdk/products/olympe/linux/env/shell
python myscript.py

I’m wondering how this sequence could be run from a shell script or even from a crontab, since I can’t make that work.

Oh, found it:

source /home/pi/parrot-groundsdk/products/olympe/linux/env/setenv && python ./myscript.py

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.