Skip to content

Commit

Permalink
fix native
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinyu Li authored and Xinyu Li committed Jan 8, 2024
1 parent c676d93 commit 778cc1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions python/ionpy/Port.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion python/ionpy/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 778cc1f

Please sign in to comment.