Python os.RTLD_GLOBAL() Examples

The following are code examples for showing how to use os.RTLD_GLOBAL(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: baloo   Author: radujica   File: utils.py    BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def load_cudf(path_to_so):
    """Dynamically load a C UDF.

    Parameters
    ----------
    path_to_so : str
        Absolute path to so.

    Returns
    -------

    """
    CDLL(path_to_so, mode=RTLD_GLOBAL)