Meshing: Mage: Fix libbief extention under windows system.

setup.py
Pierre-Antoine Rouby 2024-01-15 17:08:46 +01:00
parent f73b9b06c0
commit 0ace259d2d
1 changed files with 3 additions and 1 deletions

View File

@ -53,10 +53,12 @@ class MeshingWithMage(AMeshingTool):
self._init_c_output_bief()
def _lib_path(self):
ext = "so" if os.name == "posix" else "dll"
return os.path.abspath(
os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "mage", "libbief.so"
"..", "..", "..", "mage", f"libbief.{ext}"
)
)