changeset 3843 | 832bcf1b5b60 |
parent 3811 | fcd2826f5c9e |
child 3881 | 0b3ac94f494c |
--- a/runtime/PLCObject.py Mon Aug 07 18:17:12 2023 +0200 +++ b/runtime/PLCObject.py Thu Sep 28 17:56:03 2023 +0200 @@ -62,8 +62,9 @@ def PLCprint(message): - sys.stdout.write("PLCobject : "+message+"\n") - sys.stdout.flush() + if sys.stdout: + sys.stdout.write("PLCobject : "+message+"\n") + sys.stdout.flush() def RunInMain(func):