When building using a makefile, is there a way to retrieve all the output build generated by the make file. Because when i build with a cmd window, all the output of the build shows in the cmd window. But when using the same command in python, it seems that I can't retrieve all the build info. It does build properly but the information I am trying to retrieve is not there. I am using the os.popen function but it is not working well.
My code is:
os.chdir("c:\\P rojectDir")
CmdLine = "makel"
RetBuild = os.popen(CmdLin e)
sys.stdout.flus h()
# lets find out if the build was a success with no error.
for Line in RetBuild:
# lets write in a log file the return of the build.
fpLog.write(Lin e)
My code is:
os.chdir("c:\\P rojectDir")
CmdLine = "makel"
RetBuild = os.popen(CmdLin e)
sys.stdout.flus h()
# lets find out if the build was a success with no error.
for Line in RetBuild:
# lets write in a log file the return of the build.
fpLog.write(Lin e)
Comment