Commit 55116560 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

load dylib on mac

parent af33d69e
Pipeline #4606 passed with stage
in 23 seconds
......@@ -30,14 +30,15 @@
from ctypes import *
import numpy
from numpy import ctypeslib
import signal
import os
import sys
from . import VTK
dir_path = os.path.dirname(os.path.realpath(__file__))
lib2 = CDLL(os.path.join(dir_path,"libmbfluid2.so"))
lib3 = CDLL(os.path.join(dir_path,"libmbfluid3.so"))
lib2 = ctypeslib.load_library("libmbfluid2",dir_path)
lib3 = ctypeslib.load_library("libmbfluid3",dir_path)
signal.signal(signal.SIGINT, signal.SIG_DFL)
......
......@@ -36,12 +36,13 @@ import os
import sys
from ctypes import *
import signal
from numpy import ctypeslib
signal.signal(signal.SIGINT, signal.SIG_DFL)
dir_path = os.path.dirname(os.path.realpath(__file__))
lib2 = CDLL(os.path.join(dir_path,"libscontact2.so"))
lib3 = CDLL(os.path.join(dir_path,"libscontact3.so"))
lib2 = ctypeslib.load_library("libscontact2",dir_path)
lib3 = ctypeslib.load_library("libscontact3",dir_path)
is_64bits = sys.maxsize > 2**32
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment