From 19b9bae48fb9a2bdb71332ed9f3295f382d6440f Mon Sep 17 00:00:00 2001 From: Yoann Audouin Date: Wed, 31 Aug 2022 16:29:01 +0200 Subject: [PATCH] Generic path for executable --- src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx index c0ceac9..36ec441 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx @@ -326,10 +326,14 @@ int NETGENPlugin_NETGEN_3D::RemoteCompute(SMESH_Mesh& aMesh, aMesh.Unlock(); // Calling run_mesher + // TODO: check if we need to handle the .exe for windows std::string cmd; - // TODO: Add run_meher to bin - std::string run_mesher_exe = "/home/B61570/work_in_progress/ssmesh/run_mesher/build/src/run_mesher"; - cmd = run_mesher_exe + + fs::path run_mesher_exe = + fs::path(std::getenv("NETGENPLUGIN_ROOT_DIR"))/ + fs::path("bin")/ + fs::path("salome")/ + fs::path("run_mesher"); + cmd = run_mesher_exe.string() + " NETGEN3D " + mesh_file.string() + " " + shape_file.string() + " " + param_file.string() + " " -- 2.39.2