Skip to content

Commit efdbca7

Browse files
committed
update macos include path to use the universal lib
1 parent e02077f commit efdbca7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

objectbox/c.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def shlib_name(library: str) -> str:
4141

4242
# initialize the C library
4343
lib_path = os.path.dirname(os.path.realpath(__file__))
44-
lib_path = os.path.join(lib_path, 'lib', platform.machine(), shlib_name('objectbox'))
44+
lib_path = os.path.join(lib_path, 'lib', \
45+
platform.machine() if platform.system() != 'Darwin' else 'macos-universal', shlib_name('objectbox'))
4546
C = ctypes.CDLL(lib_path)
4647

4748
# load the core library version

0 commit comments

Comments
 (0)