Skip to content

Commit 3c16492

Browse files
committed
Add imports to libmongoc and libbson
This makes the windows CDLL import work without modifying the path
1 parent 0b7b2e6 commit 3c16492

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

monary/monary.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def _load_cmonary_lib():
2626
abspath = os.path.abspath(thismodule)
2727
moduledir = list(os.path.split(abspath))[:-1]
2828
if platform.system() == 'Windows':
29+
libbson = CDLL(os.path.join(*(moduledir + ['libbson-1.0.dll'])))
30+
libcmongo = CDLL(os.path.join(*(moduledir + ['libmongoc-1.0.dll'])))
2931
cmonary_fname = "libcmonary.dll"
3032
else:
3133
cmonary_fname = "libcmonary.so"

0 commit comments

Comments
 (0)