Sourcing linux pyhton environment and executing script

I want to automatically source the …olympe/linux/env/shell file from a linux bash script and after that continue to execute other bash commands afterwards in the virtual environment.

In my bash script, the environment file gets sourced, however, the rest of the script only gets executed, once I exit the virtual (olympe-python3) environment.
What is the right way to do this?

I found the solution that works for me.

Sourcing the setenv script from the …/linux/env/ directory as a first step in the shell script, did the trick.

1 Like