How to use the cppimport.set_rtld_flags function in cppimport

To help you get started, we’ve selected a few cppimport examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tbenthompson / tectosaur / tectosaur / __init__.py View on Github external
import cppimport
import ctypes
cppimport.set_rtld_flags(ctypes.RTLD_GLOBAL)

import os

source_dir = os.path.dirname(os.path.realpath(__file__))
data_dir = os.path.join(source_dir, 'data')

def get_data_filepath(filename):
    return os.path.join(data_dir, filename)

from tectosaur.util.logging import setup_root_logger
logger = setup_root_logger(__name__)
from tectosaur.util.timer import Timer

from tectosaur.mesh.mesh_gen import make_rect
from tectosaur.mesh.combined_mesh import CombinedMesh
from tectosaur.mesh.modify import concat