def get_projects_in_workspace(workspace): guards.is_directory(workspace) subfolders = utils.get_subfolders(workspace) projects = [] for folder in subfolders: project_directory = path.join(workspace, folder) try: project = load_project(project_directory) projects.append(project) except Exception: pass return projects
def get_templates(self): folder = path.join(self.get_folder(), self.relative_path) templates = utils.get_subfolders(folder) templates = [item for item in templates if self.is_template(item)] return templates
def get_templates(self): folder = path.join(self.get_folder(), self.relative_path) templates = utils.get_subfolders(folder) return templates