diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-03-22 11:52:28 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-03-22 13:30:41 +0100 |
| commit | 9bab3c87825b4284b3e6f2be3fa9e89da7723116 (patch) | |
| tree | 6049f03402f23168c5000e9843a979935cd0996d /wrappers/python/eduvpn_common/loader.py | |
| parent | f94e6471268c12b7b5c7fd1c8b8800dac3848d6c (diff) | |
All: Refactor makefile & building
Diffstat (limited to 'wrappers/python/eduvpn_common/loader.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/loader.py | 21 |
1 files changed, 1 insertions, 20 deletions
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 |
