[BangPypers] Capture and save running process on Python 3.6

Noufal Ibrahim KV noufal at nibrahim.net.in
Fri Nov 3 11:58:50 EDT 2017

On Thu, Nov 02 2017, Ajinkya Bobade wrote:


> However, I want to write this code for "*.bag" extension files that is
>  sys.stdout = open("/Volumes/aj/hello world.bag", 'w') . This file is
> defined as Binary(application/octect-stream). The above code doesn't
> work in this scenario. How do I make it work?


The contents of a file are not dependent on its extension. What is it
that you're trying to do here? I assumed that you simply want to capture
all your log messages.


More information about the BangPypers mailing list