From 778cc1f8f14f01b23624d0a0bde61e7401ff7897 Mon Sep 17 00:00:00 2001 From: Xinyu Li Date: Sun, 7 Jan 2024 16:51:18 -0800 Subject: [PATCH] fix native --- python/ionpy/Port.py | 12 ++++++------ python/ionpy/native.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/python/ionpy/Port.py b/python/ionpy/Port.py index a4046b82..146d6e81 100644 --- a/python/ionpy/Port.py +++ b/python/ionpy/Port.py @@ -30,12 +30,12 @@ class Port: def __init__(self, - name: Optional[str] = None, - type: Optional[Type] = None, - dim: Optional[int] = None, - # -- or - obj_: Optional[c_ion_port_t] = None, - ): + name: Optional[str] = None, + type: Optional[Type] = None, + dim: Optional[int] = None, + # -- or + obj_: Optional[c_ion_port_t] = None, + ): if obj_ is None: obj_ = c_ion_port_t() type_cobj = type.to_cobj() diff --git a/python/ionpy/native.py b/python/ionpy/native.py index f2a03383..10296932 100644 --- a/python/ionpy/native.py +++ b/python/ionpy/native.py @@ -7,7 +7,7 @@ if platform.system() == 'Windows': ion_core_module = find_library('ion-core.dll') elif platform.system() == 'Darwin': - ion_core_module = '/Users/xinyuli/Desktop/ion-kit-install/lib/libion-core.dylib' + ion_core_module = 'libion-core.dylib' elif platform.system() == 'Linux': ion_core_module = 'libion-core.so'