The first batch file launches a command prompt, i need the second command to be in the ccontext of the first. how can I do this in python?
As is, it launches the batch, and blocks until the batch (with its command prompt context) terminates, and then executes devenv
without the necessary context.
os.system(r'%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86')
os.system(r'devenv asdf.sln /rebuild Debug /Out last-build.txt')
think of it as in i'm in bash, and i need to execute a command in a perl context, so i type perl -c 'asdf'
. executing perl and asdf back to back won't work, i need to get the devenv
inside of the perl context.