# HG changeset patch
# User Edouard Tisserant
# Date 1536745010 -7200
# Node ID a0efe3d9c853011fa148b5629ae825d319fa4489
# Parent  28b0a783975e871fb22586321e4dfba9a501ea71
Flush standard output when runtime ready, so that IDE knows it, and can continue connection to LOCAL:// uri

diff -r 28b0a783975e -r a0efe3d9c853 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()