I have a python script which builds a solution file using msbuild on windows system.I want to show the command prompt output when the build process is running.My code something looks like below
def build(self,projpath):
    if not os.path.isfile(self.msbuild):
        raise Exception('MSBuild.exe not found. path=' + self.msbuild)
    arg1 = '/t:Rebuild'
    arg2 = '/p:Configuration=Release'
    p = subprocess.call([self.msbuild,projpath,arg1,arg2])
    print p
    if p==1:
        return False
    return True
I am able to build the file, but i need to show the build status in the separate GUI(status window).I tried a lot to redirect the command prompt output to a file and then read from the file but, could not make it. I tried with below command,
subprocess.check_output('subprocess.call([self.msbuild,projpath,arg1,arg2])', shell=False) > 'C:\tmp\file.txt'
can anyone let me know how can i show all the outputs from a command prompt in a status window(a GUI using wxpython) when i run the script?
 
    