예제 #1
0
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.
예제 #2
0
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.