Skip to content

Commit

Permalink
match rebound
Browse files Browse the repository at this point in the history
  • Loading branch information
dtamayo committed Dec 31, 2024
1 parent 8937dc5 commit 6989c04
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reboundx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@

#Import shared C library
import os
pymodulespath = os.path.dirname(__file__)
#pymodulespath = os.path.dirname(__file__)
from ctypes import *
clibreboundx = cdll.LoadLibrary(pymodulespath + '/../libreboundx' + suffix)
#clibreboundx = cdll.LoadLibrary(pymodulespath + '/../libreboundx' + suffix)
pymodulepath = os.path.dirname(os.path.abspath(__file__))
pymodulepath = os.path.abspath(os.path.join(pymodulepath, os.pardir))
__libpath__ = os.path.join(pymodulepath, "librebound"+suffix)
clibrebound = cdll.LoadLibrary(__libpath__)

# Version
__version__ = c_char_p.in_dll(clibreboundx, "rebx_version_str").value.decode('ascii')
Expand Down

0 comments on commit 6989c04

Please sign in to comment.