I need to source an environment file/Unix script from Python script to fetch the variables and use those variables in Python script.
I am able to source the environment file/Unix script but not able to fetch the value of the variable and use it.
My env file (env_var.env)looks like:-
export FLAG=YES; export TAG=A;
I want to source this file in my python script and need to print and use the values of FLAG and TAG.
Thanks in advance.