Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Aug 15, 2024
1 parent 8752612 commit 7d56cf1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions misp_modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@
"/opt/local/lib/",
]

ARCH_TO_EXTENSION = {
"linux": "so",
"darwin": "dylib",
}


def _get_libfaup_path(lib_path: str) -> str:
match platform.system().lower():
case "linux":
extension = "so"
case "darwin":
extension = "dylib"
case "_":
extension = "lib"
extension = ARCH_TO_EXTENSION.get(platform.system().lower(), "lib")
return f"{lib_path.rstrip('/')}/libfaupl.{extension}"


Expand Down

0 comments on commit 7d56cf1

Please sign in to comment.