equal
deleted
inserted
replaced
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): |