Browse Source

fix a potential name conflict

master
clowwindy 10 years ago
parent
commit
5c05a74727
  1. 4
      shadowsocks/crypto/util.py

4
shadowsocks/crypto/util.py

@ -27,7 +27,7 @@ import logging
def find_library(possible_lib_names, search_symbol, library_name): def find_library(possible_lib_names, search_symbol, library_name):
from ctypes.util import find_library import ctypes.util
from ctypes import CDLL from ctypes import CDLL
paths = [] paths = []
@ -36,7 +36,7 @@ def find_library(possible_lib_names, search_symbol, library_name):
possible_lib_names = [possible_lib_names] possible_lib_names = [possible_lib_names]
for name in possible_lib_names: for name in possible_lib_names:
path = find_library(name) path = ctypes.util.find_library(name)
if path: if path:
paths.append(path) paths.append(path)

Loading…
Cancel
Save