Skip to content

Commit

Permalink
retrying
Browse files Browse the repository at this point in the history
  • Loading branch information
enzbus committed Apr 27, 2024
1 parent b53a71e commit 04112e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project_euromir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@

__version__ = '0.0.1'
import pathlib
import platform
from ctypes import cdll

_EXTS = {'Linux':'.so', 'Darwin':'.dylib', 'Windows':'.dll'}

for fname in pathlib.Path(__file__).parent.iterdir():
if fname.suffix in ['.so', '.dll', '.dylib']:
if fname.suffix == _EXTS[platform.system()]:
print('LOADING LIBRARY', fname)
LIBRARY = cdll.LoadLibrary(fname)

Expand Down

0 comments on commit 04112e6

Please sign in to comment.