Flush standard output when runtime ready, so that IDE knows it, and can continue connection to LOCAL:// uri
authorEdouard Tisserant
Wed, 12 Sep 2018 11:36:50 +0200
changeset 2273 a0efe3d9c853
parent 2272 28b0a783975e
child 2305 56f1d8aca886
child 2306 908471b344ba
Flush standard output when runtime ready, so that IDE knows it, and can continue connection to LOCAL:// uri
Beremiz_service.py
--- a/Beremiz_service.py	Tue Sep 11 16:08:21 2018 +0200
+++ b/Beremiz_service.py	Wed Sep 12 11:36:50 2018 +0200
@@ -517,8 +517,8 @@
 
 # Beremiz IDE detects LOCAL:// runtime is ready by looking
 # for self.workdir in the daemon's stdout.
-print(_("Current working directory :"), WorkingDir)
-
+sys.stdout.write(_("Current working directory :") + WorkingDir + "\n")
+sys.stdout.flush()
 
 if havetwisted or havewx:
     ui_thread_started = Lock()