summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/python/eduvpn_common')
-rw-r--r--wrappers/python/eduvpn_common/loader.py21
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