def _load_library(self):
        """Return the fortran library, loaded with """
        path = self._library_path()
        logger.info("Loading library from path {}".format(path))
        library_dir = os.path.dirname(path)
        if platform.system() == 'Windows':
            import win32api
            olddir = os.getcwd()
            os.chdir(library_dir)
            win32api.SetDllDirectory('.')

        result = cdll.LoadLibrary(path)

        if platform.system() == 'Windows':
            os.chdir(olddir)

        return result
def _load_library ( self ) : path = self . _library_path ( ) logger . info ( "Loading library from path {}" . format ( path ) ) library_dir = os . path . dirname ( path ) if platform . system ( ) == 'Windows' : import win32api olddir = os . getcwd ( ) os . chdir ( library_dir ) win32api . SetDllDirectory ( '.' ) result = cdll . LoadLibrary ( path ) if platform . system ( ) == 'Windows' : os . chdir ( olddir ) return result
Return the fortran library, loaded with