vcp/project.py
def get_dependent_projects(self, recursive = True):
        """Get the dependencies of the Project

        Args:
            recursive (bool): add the dependant project's dependencies too

        Returns:
            dict of project name and project instances
        """
        projects = {}
        for name, ref in list(self.dependencies.items()):
            try:
                prj = self.vcp.projects[name]
            except KeyError:
                logger.error("Unknown project '%s' in project '%s' dependencies!", name, self.name)
                continue
            projects[name] = prj
            if recursive:
                projects.update(prj.get_dependent_projects())
        return projects
def get_dependent_projects(self, recursive = True):
        projects = {}
        for name, ref in list(self.dependencies.items()):
            try:
                prj = self.vcp.projects[name]
            except KeyError:
                logger.error("Unknown project '%s' in project '%s' dependencies!", name, self.name)
                continue
            projects[name] = prj
            if recursive:
                projects.update(prj.get_dependent_projects())
        return projects
def get_dependent_projects ( self , recursive = True ) : projects = { } for name , ref in list ( self . dependencies . items ( ) ) : try : prj = self . vcp . projects [ name ] except KeyError : logger . error ( "Unknown project '%s' in project '%s' dependencies!" , name , self . name ) continue projects [ name ] = prj if recursive : projects . update ( prj . get_dependent_projects ( ) ) return projects
Get the dependencies of the Project

        Args:
            recursive (bool): add the dependant project's dependencies too

        Returns:
            dict of project name and project instances
Get the dependencies of the Project