On Wed, Nov 13, 2013 at 7:22 AM, Isaac Gerg wrote:
> Thanks for the reply Bill. The problem is the text i am getting is from a
> python warning message, not one of my own print() function calls.
Since sys.stdout is just an object, you could replace it with
something that redirects its write() c
Thanks for the reply Bill. The problem is the text i am getting is from a
python warning message, not one of my own print() function calls.
--
https://mail.python.org/mailman/listinfo/python-list
On Nov 12, 2013, at 2:12 PM, Isaac Gerg wrote:
> I launch my program with pythonw and begin it with the code below so that all
> my print()'s go to the log file specified.
>
> if sys.executable.find('pythonw') >=0:
># Redirect all console output to file.
>sys.stdout = open("pyt
I launch my program with pythonw and begin it with the code below so that all
my print()'s go to the log file specified.
if sys.executable.find('pythonw') >=0:
# Redirect all console output to file.
sys.stdout = open("pythonw - stdout stderr.log",'w')
sys.stderr = sys.std