To redirect the standard output to a file by the source code, add this in the beginning of the Python script:
import sys
sys.stdout = open('/path/to/outputfile', 'a')
Friday, August 30, 2019
Subscribe to:
Post Comments (Atom)
... and Thoughts
No comments:
Post a Comment