File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,6 @@ def _load_shared_obj(name, additional_searching_paths=None):
39
39
"""Attempts to load shared library."""
40
40
paths = []
41
41
42
- # Search typical locations
43
- try :
44
- paths .append (ctu .find_library (name ))
45
- except FileNotFoundError :
46
- pass
47
- try :
48
- paths .append (ctu .find_library ("lib" + name ))
49
- except FileNotFoundError :
50
- pass
51
-
52
42
# Search additional path, if any
53
43
if additional_searching_paths :
54
44
for path in additional_searching_paths :
@@ -60,6 +50,16 @@ def _load_shared_obj(name, additional_searching_paths=None):
60
50
os .environ ["LD_LIBRARY_PATH" ] += os .path .abspath (path ) # Linux
61
51
if platform .system () == "Windows" :
62
52
os .environ ["PATH" ] += os .path .abspath (path ) # Windows
53
+ # Search typical locations
54
+
55
+ try :
56
+ paths .insert (0 , ctu .find_library (name ))
57
+ except FileNotFoundError :
58
+ pass
59
+ try :
60
+ paths .insert (0 , ctu .find_library ("lib" + name ))
61
+ except FileNotFoundError :
62
+ pass
63
63
64
64
dll = ct .windll if platform .system () == "Windows" else ct .cdll
65
65
You can’t perform that action at this time.
0 commit comments