Hi Vinay,
I am using this sarge version: vinay.sajip-sarge-8ef70d2c06b7
I want to do this:
1) Run this batch script "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat".
- This script sets some ENV variables and probably some registry settings as well for Visual Studio 2012 build environment
2) which devenv # This should not correctly find devenv executable in Visual Studio 11.0 directory
I tried this with sarge:
p=sarge.Pipeline('"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\\vsvars32.bat"; which devenv')
p.run()
'which devenv' is not able to find 'devenv'. If I run these 2 commands from cmd.exe in Windows it works fine [Note: I have cygwin installed - so 'which' command works from cmd.exe]
I guess 2 commands in Pipeline are getting executed in 2 different subprocess and that's why ENV set in 1st command is not visible in 2nd subprocess. Is my guess correct?
How do I solve this problem?
Thanks,
Sachin