Skip to content

Commit 117166f

Browse files
committed
Add support for loading of yajl.dll on Windows
Yajl built with default build settings yields yajl.dll, so make an attempt to load this. At the moment, the existing load structure has simply been duplicated to achieve this. This could be refactored into something cleaner.
1 parent 6917b7d commit 117166f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

yajl/yajl_common.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ def load_yajl():
3838
return cdll.LoadLibrary(yajlso)
3939
except OSError:
4040
pass
41+
42+
yajlso = 'yajl.dll'
43+
try:
44+
return cdll.LoadLibrary(yajlso)
45+
except OSError:
46+
pass
47+
4148
raise OSError('Yajl shared object cannot be found. '
4249
'Please install Yajl and confirm it is on your shared lib path.')
4350

0 commit comments

Comments
 (0)