(self,libname)
Given the name of a library, load it.
Given the name of a library, load it.
Given the name of a library load it .
def load_library(self,libname):
        """Given the name of a library, load it."""
        paths = self.getpaths(libname)

        for path in paths:
            if os.path.exists(path):
                return self.load(path)

        raise ImportError("%s not found." % libname)
def load_library ( self , libname ) : paths = self . getpaths ( libname ) for path in paths : if os . path . exists ( path ) : return self . load ( path ) raise ImportError ( "%s not found." % libname )