From da104f63b701b21386e77d62ea33679a5d37a1f4 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 17 Jul 2022 01:28:54 +0200 Subject: [PATCH] [FEM] fix CCX (new framework) binary handling - when the binary was not found, the function called the non-existing binary - also push error message to the status info so that user gets feedback also when report view console is not shown --- src/Mod/Fem/femsolver/calculix/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/femsolver/calculix/tasks.py b/src/Mod/Fem/femsolver/calculix/tasks.py index 6cce64a458..a03f07bd4f 100644 --- a/src/Mod/Fem/femsolver/calculix/tasks.py +++ b/src/Mod/Fem/femsolver/calculix/tasks.py @@ -115,7 +115,9 @@ class Solve(run.Solve): self.pushStatus("Get solver binary...\n") binary = settings.get_binary("Calculix") if binary is None: - self.fail() # a print has been made in settings module + self.pushStatus("Error: The Calculix binary has not been found!") + self.fail() + return # run solver self._process = subprocess.Popen(