Hi Amit,
As far as I know you can't really do this with subprocess, because wrenv.exe and make would be called in different contexts. THus wrenve.exe couldn't change the environment. just try following: - create a .bat file with both commands in it - verify, that the bat file works - call the bat file with Popen However I am surprised, that a .exe file can modify the current environment. At least under linux this wouldn't be possible (except with sourcing a shell script) Or do you mean with "setting up the proper environment" creating some intermediate files? bye N amit wrote: > How does one go about calling multiple programs using subprocess? > > This is the program flow: > > C:\> wrenv.exe > C:\> make clean > .. > .. > > The 'wrenv.exe' is necessary since it sets up the proper environment > for building. How do I use subprocess to execute 'wrenv.exe' and then > the 'make clean' command. > > Any help is appreciated. > > Thanks, > Amit -- http://mail.python.org/mailman/listinfo/python-list