def __init__(self, module, library, dirpath=None, link=None):
        """Sets up the module wrapper instance so that it can accept requests to
        build code for wrapper executables, etc.

        :arg module: an instance of fortpy.elements.Module to use for constructing
          the wrapper module.
        :arg library: the name of the library to create with ftypes.
        :arg dirpath: the full path to the directory to save the wrapper module to.
        :arg link: The path to the shared library to link with the wrapper module 
          when it is compiled.
        """
        self.module = module
        self.library = library
        self.uses = []
        """A list of executables for which valid subroutines will appear in the module."""
        from os import path
        if dirpath is not None:
            self.dirpath = path.abspath(dirpath)
        else:
            self.dirpath = path.abspath(".")
        if library is not None:
            self.dirpath = path.join(self.dirpath, library)    

        self.f90path = path.join(self.dirpath, "f90")
        """The full path to the folder to write *.f90 files to and to compile in."""            
        self.needs = []
        """A list of modules needed by the *wrapper* module to run correctly."""
        self.dependencies = self._get_dependencies()
        """A dict of modules that the original code module depends on and that need to be linked
        in to the shared library compilation.
        """
        self.link = link
        """The path to the *compiled* library to reference when linking the shared library."""
def __init__ ( self , module , library , dirpath = None , link = None ) : self . module = module self . library = library self . uses = [ ] from os import path if dirpath is not None : self . dirpath = path . abspath ( dirpath ) else : self . dirpath = path . abspath ( "." ) if library is not None : self . dirpath = path . join ( self . dirpath , library ) self . f90path = path . join ( self . dirpath , "f90" ) self . needs = [ ] self . dependencies = self . _get_dependencies ( ) self . link = link
Sets up the module wrapper instance so that it can accept requests to
        build code for wrapper executables, etc.

        :arg module: an instance of fortpy.elements.Module to use for constructing
          the wrapper module.
        :arg library: the name of the library to create with ftypes.
        :arg dirpath: the full path to the directory to save the wrapper module to.
        :arg link: The path to the shared library to link with the wrapper module 
          when it is compiled.