I need to run a few batch files that setup a lot of environment variables and paths. Then I run my application that requires those environment variables and paths to be specified. If I am doing this on DOS it is as simple as running these batch files in series and then running my command. But I need to wrap this up in python. Once the Popen() call for setup.bat is done, the next Popen() call with my command does not find this environment. How do I solve this problem other than recreating all the environment manually in the python script?
The problem specifically for me is I need to run the compiler setup batch files (like Intel and Visual Studio) and then run make that uses these compilers on windows.
Thanks, -Sachin