FEM: add standard path for gmsh on osx
This commit is contained in:
@@ -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. "
|
||||
|
||||
Reference in New Issue
Block a user