From 9bab3c87825b4284b3e6f2be3fa9e89da7723116 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 22 Mar 2024 11:52:28 +0100 Subject: All: Refactor makefile & building --- wrappers/python/eduvpn_common/loader.py | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'wrappers/python/eduvpn_common/loader.py') diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py index f1e27e1..ca0fd20 100644 --- a/wrappers/python/eduvpn_common/loader.py +++ b/wrappers/python/eduvpn_common/loader.py @@ -1,5 +1,4 @@ import pathlib -import platform from collections import defaultdict from ctypes import CDLL, c_char_p, c_int, c_void_p, cdll @@ -24,25 +23,7 @@ def load_lib() -> CDLL: :return: The Go shared library loaded with cdll.LoadLibrary from ctypes :rtype: CDLL """ - lib_prefixes = defaultdict( - lambda: "lib", - { - "windows": "", - }, - ) - - lib_suffixes = defaultdict( - lambda: ".so", - { - "windows": ".dll", - "darwin": ".dylib", - }, - ) - - os = platform.system().lower() - - libname = "eduvpn_common" - libfile = f"{lib_prefixes[os]}{libname}-{__version__}{lib_suffixes[os]}" + libfile = f"libeduvpn_common-{__version__}.so" lib = None -- cgit v1.2.3