Setting up project and setup_env.sh

Hi

Is it possible that from my main function, I can automatically run
source setup_env.sh from within my code? Instead of manually doing this manually every time?

I do not believe that is possible. Your application will run inside the environment, so the environment needs to be activated first. You can however start everything from a wrapper script where you first source the environment and then call your application.

1 Like