Package mapproxy :: Package core :: Module libutils
[hide private]
[frames] | no frames]

Module libutils

source code

Functions [hide private]
 
load_library(lib_name, locations_conf={'darwin': {'exts': ['.dylib'], 'paths': ['/opt/local/lib']}, ...)
Load the lib_name library with ctypes.
source code
 
find_library(lib_name, paths=None, exts=None)
Search for library in all permutations of paths and exts.
source code
Variables [hide private]
  default_locations = {'darwin': {'exts': ['.dylib'], 'paths': [...
Function Details [hide private]

load_library(lib_name, locations_conf={'darwin': {'exts': ['.dylib'], 'paths': ['/opt/local/lib']}, ...)

source code 

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.

find_library(lib_name, paths=None, exts=None)

source code 
Search for library in all permutations of paths and exts. If nothing is found None is returned.

Variables Details [hide private]

default_locations

Value:
{'darwin': {'exts': ['.dylib'], 'paths': ['/opt/local/lib']},
 'win32': {'exts': ['.dll'],
           'paths': ['/Users/olt/Documents/venv/mapproxy/lib/python2.5\
/../../../DLLs']}}