Meshing: Mage: Fix libbief extention under windows system.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-01-15 17:08:46 +01:00
1 parent f73b9b06c0
commit 0ace259d2d
1 file changed
+3 -1
+3 -1
View File
@@ -53,10 +53,12 @@ class MeshingWithMage(AMeshingTool):
self._init_c_output_bief() self._init_c_output_bief()
def _lib_path(self): def _lib_path(self):
ext = "so" if os.name == "posix" else "dll"
return os.path.abspath( return os.path.abspath(
os.path.join( os.path.join(
os.path.dirname(__file__), os.path.dirname(__file__),
"..", "..", "..", "mage", "libbief.so" "..", "..", "..", "mage", f"libbief.{ext}"
) )
) )