def _find_action_sets(cls, dir): """Traverses recursively starting from dir to find action sets. It is similar to os.walk, but more optimized for this use case.""" for entry in os.listdir(dir): full_path = os.path.join(dir, entry) if entry.startswith("as_"): cls.action_sets[entry] = GeneralLoader._load_action(full_path) else: if os.path.isdir(full_path) and entry != ".svn" and entry != ".DS_Store": cls._find_action_sets(full_path)
def _find_action_sets(cls, dir): """Traverses recursively starting from dir to find action sets. It is similar to os.walk, but more optimized for this use case.""" for entry in os.listdir(dir): full_path = os.path.join(dir, entry) if entry.startswith("as_"): cls.action_sets[entry] = GeneralLoader._load_action(full_path) else: if os.path.isdir(full_path) and entry != ".DS_Store": cls._find_action_sets(full_path)