src/eric7/Project/CreateDialogCodeDialog.py

branch
eric7
changeset 9560
abffba70297f
parent 9559
34fc53e6159d
child 9602
28e7f6cdf385
--- a/src/eric7/Project/CreateDialogCodeDialog.py	Sun Dec 04 11:58:37 2022 +0100
+++ b/src/eric7/Project/CreateDialogCodeDialog.py	Sun Dec 04 14:20:53 2022 +0100
@@ -215,8 +215,11 @@
         started = proc.waitForStarted(5000)
         finished = proc.waitForFinished(30000)
         if started and finished:
-            output = proc.readAllStandardOutput()
+            output = proc.readAllStandardError()
             outText = str(output, "utf-8", "replace")
+            if "@@eric_start@@" in outText and "@@eric_end@@" in outText:
+                # it is something we sent via UicLoadUi[56].py
+                outText = outText.split("@@eric_start@@")[1].split("@@eric_end@@")[0]
             if proc.exitCode() == 0:
                 ok = True
                 uicText = outText.strip()

eric ide

mercurial