Skip to content

Commit

Permalink
Merge pull request #330 from fixstars/fix/ion-contrib-python-windows
Browse files Browse the repository at this point in the history
Fix/ion-contrib-python on windows
  • Loading branch information
xinyuli1204 authored Oct 1, 2024
2 parents 767b6ad + e0fdc1a commit 8a42b0d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/ionpy/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
if platform.system() == 'Windows':
ion_core_module = os.path.join(pre_built_path, 'windows/ion-core.dll')
ion_bb_module = os.path.join(pre_built_path, 'windows/ion-bb.dll')
os.add_dll_directory(os.path.join(pre_built_path, 'windows'))
elif platform.system() == 'Darwin':
ion_core_module = os.path.join(pre_built_path, 'macos/libion-core.dylib')
ion_bb_module = os.path.join(pre_built_path, 'macos/libion-bb.dylib')
elif platform.system() == 'Linux':
ion_core_module = os.path.join(pre_built_path, 'linux/libion-core.so')
ion_bb_module = os.path.join(pre_built_path, 'linux/libion-bb.so')

# libion-core.so must be in a directory listed in $LD_LIBRARY_PATH.
# ion-core.dll must be in a directory listed in %PATH%.
# libion-core.dylib must be in a directory listed in $DYLD_LIBRARY_PATH.
ion_core = ctypes.cdll.LoadLibrary(ion_core_module)
ion_bb = ctypes.cdll.LoadLibrary(ion_bb_module)

Expand Down

0 comments on commit 8a42b0d

Please sign in to comment.