I am creating a Visual Studio solution from a Python script. Everything works well, except that I cannot capture the output of the assembly.
p = subprocess.Popen(['devenv', 'solution.sln', '/build'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) (out, err) = p.communicate() ret = p.returncode
Here both out and err always empty. This happens regardless of build success, as shown in p.returncode .
python subprocess
Gilad naor
source share