FEM: add standard path for gmsh on osx

This commit is contained in:
Bernd Hahnebach
2022-11-18 12:02:22 +01:00
committed by GitHub
parent 5adcfd1dd4
commit c0a45ec61e

View File

@@ -329,6 +329,12 @@ class GmshTools():
Console.PrintError(error_message)
raise GmshError(error_message)
self.gmsh_bin = gmsh_path
elif system() == "Darwin":
gmsh_path = "/Applications/Gmsh.app/Contents/MacOS/gmsh"
FreeCAD.ParamGet(
"User parameter:BaseApp/Preferences/Mod/Fem/Gmsh"
).SetString("gmshBinaryPath", gmsh_path)
self.gmsh_bin = gmsh_path
else:
error_message = (
"No standard location implemented for your operating system. "