We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6917b7d + 89ef9a4 commit e8fb5ccCopy full SHA for e8fb5cc
yajl/yajl_common.py
@@ -32,12 +32,14 @@ def load_yajl():
32
:returns: The yajl shared object
33
:raises OSError: when libyajl cannot be loaded
34
'''
35
- for ftype in '', '.so', '.dylib':
36
- yajlso = 'libyajl%s' %(ftype)
+ fnames = ['libyajl%s' %(t) for t in ['', '.so', '.dylib']] + ['yajl.dll']
+
37
+ for yajlso in fnames:
38
try:
39
return cdll.LoadLibrary(yajlso)
40
except OSError:
41
pass
42
43
raise OSError('Yajl shared object cannot be found. '
44
'Please install Yajl and confirm it is on your shared lib path.')
45
0 commit comments