popen / batchfile / environment variables

Achim Domma achim.domma at syynx.de
Tue Nov 19 13:37:52 EST 2002


Hello,

I want to write a python script with automaticaly builds a VC.Net solution.
To make VS.Net usable from commandline, I first have to execute a batchfile
which sets the required environment variables. In a Dos-Box I would do
something like this:

path_to\vcvars32.bat
devenv solution_file.sln /rebuild "Release"

If I use popen or system to do the same, every call runs in his own
environment, so the changes made by the .bat file do not change the settings
for the second call.

Any idea how to do that in python?

regards,
Achim





More information about the Python-list mailing list