Add this to a file to generate a useful debug.log file!
Useful if you're unable to access a console for printing but still need to know why a file is failing to execute!
sys.stdout = sys.stderr = open(r"C:\Users\Alex.Tavener\Documents\debug.log", "w")
No comments:
Post a Comment