runtime/PLCObject.py
changeset 3843 832bcf1b5b60
parent 3811 fcd2826f5c9e
child 3881 0b3ac94f494c
equal deleted inserted replaced
3842:3922024076b3 3843:832bcf1b5b60
    60     "win32":  ".dll",
    60     "win32":  ".dll",
    61 }.get(sys.platform, "")
    61 }.get(sys.platform, "")
    62 
    62 
    63 
    63 
    64 def PLCprint(message):
    64 def PLCprint(message):
    65     sys.stdout.write("PLCobject : "+message+"\n")
    65     if sys.stdout:
    66     sys.stdout.flush()
    66         sys.stdout.write("PLCobject : "+message+"\n")
       
    67         sys.stdout.flush()
    67 
    68 
    68 
    69 
    69 def RunInMain(func):
    70 def RunInMain(func):
    70     @wraps(func)
    71     @wraps(func)
    71     def func_wrapper(*args, **kwargs):
    72     def func_wrapper(*args, **kwargs):