File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 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):
3939 """Attempts to load shared library."""
4040 paths = []
4141
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-
5242 # Search additional path, if any
5343 if additional_searching_paths :
5444 for path in additional_searching_paths :
@@ -60,6 +50,16 @@ def _load_shared_obj(name, additional_searching_paths=None):
6050 os .environ ["LD_LIBRARY_PATH" ] += os .path .abspath (path ) # Linux
6151 if platform .system () == "Windows" :
6252 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
6363
6464 dll = ct .windll if platform .system () == "Windows" else ct .cdll
6565
You can’t perform that action at this time.
0 commit comments