def __init__(self,
                 name,
                 path,
                 dsm=None,
                 package=None,
                 limit_to=None,
                 build_tree=True,
                 build_dependencies=True,
                 enforce_init=True):
        """
        Initialization method.

        Args:
            name (str): name of the package.
            path (str): path to the package.
            dsm (DSM): parent DSM.
            package (Package): parent package.
            limit_to (list of str):
                list of string to limit the recursive tree-building to
                what is specified.
            build_tree (bool): auto-build the tree or not.
            build_dependencies (bool): auto-build the dependencies or not.
            enforce_init (bool):
                if True, only treat directories if they contain an
                ``__init__.py`` file.
        """
        self.name = name
        self.path = path
        self.package = package
        self.dsm = dsm
        self.limit_to = limit_to or []
        self.enforce_init = enforce_init

        RootNode.__init__(self, build_tree)
        LeafNode.__init__(self)

        if build_tree and build_dependencies:
            self.build_dependencies()
def __init__ ( self , name , path , dsm = None , package = None , limit_to = None , build_tree = True , build_dependencies = True , enforce_init = True ) : self . name = name self . path = path self . package = package self . dsm = dsm self . limit_to = limit_to or [ ] self . enforce_init = enforce_init RootNode . __init__ ( self , build_tree ) LeafNode . __init__ ( self ) if build_tree and build_dependencies : self . build_dependencies ( )
Initialization method.

        Args:
            name (str): name of the package.
            path (str): path to the package.
            dsm (DSM): parent DSM.
            package (Package): parent package.
            limit_to (list of str):
                list of string to limit the recursive tree-building to
                what is specified.
            build_tree (bool): auto-build the tree or not.
            build_dependencies (bool): auto-build the dependencies or not.
            enforce_init (bool):
                if True, only treat directories if they contain an
                ``__init__.py`` file.