def SetupForPrint(): win32trace.InitWrite() try: # Under certain servers, sys.stdout may be invalid. print("Redirecting output to win32trace remote collector") except: pass win32trace.setprint() # this works in an rexec environment.
def SetupForPrint(): win32trace.InitWrite() try: # Under certain servers, sys.stdout may be invalid. print "Redirecting output to win32trace remote collector" except: pass win32trace.setprint() # this works in an rexec environment.