Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
Load the `lib_name` library with ctypes.
If ctypes.util.find_library does not find the library,
different path and filename extensions will be tried.

Retruns the loaded library or None.

        def load_library(lib_names, locations_conf=default_locations):
    """
    Load the `lib_name` library with ctypes.
    If ctypes.util.find_library does not find the library,
    different path and filename extensions will be tried.
    
    Retruns the loaded library or None.
    """
    if isinstance(lib_names, basestring):
        lib_names = [lib_names]
    
    for lib_name in lib_names:
        lib = load_library_(lib_name, locations_conf)
        if lib is not None: return lib
        


src/m/a/MapProxy-1.6.0/mapproxy/util/ogr.py   MapProxy(Download)
import os
import sys
from mapproxy.util.lib import load_library
import ctypes
from ctypes import c_void_p, c_char_p, c_int
 
def init_libgdal():
    libgdal = load_library(['libgdal', 'libgdal1', 'gdal110', 'gdal19', 'gdal18', 'gdal17'])

src/m/a/mapproxy-HEAD/mapproxy/util/ogr.py   mapproxy(Download)
import os
import sys
from mapproxy.util.lib import load_library
import ctypes
from ctypes import c_void_p, c_char_p, c_int
 
def init_libgdal():
    libgdal = load_library(['libgdal', 'libgdal1', 'gdal110', 'gdal19', 'gdal18', 'gdal17'])

src/m/a/MapProxy-1.6.0/mapproxy/platform/cpython/proj.py   MapProxy(Download)
import os
import sys
from mapproxy.util.lib import load_library
 
import ctypes
def init_libproj():
    libproj = load_library('libproj')
 
    if libproj is None: return
 

src/m/a/mapproxy-HEAD/mapproxy/platform/cpython/proj.py   mapproxy(Download)
import os
import sys
from mapproxy.util.lib import load_library
 
import ctypes
def init_libproj():
    libproj = load_library('libproj')
 
    if libproj is None: return