When 7zip runs from the command line, it will print a progress bar using a series of '%' symbols.
I'd like to both capture and print this progress bar when executing 7zip from within Python. How do I do this?
The Python code I'm currently using:
from subprocess import Popen, PIPE
pipe = Popen('7za.exe a -tgzip "e:\\backup\\sch Testerr 2012 06 23 17-27.gzip" "E:/archiv"' , stdout=PIPE)
text = pipe.communicate()[0]
print text