def get_build_dirs(self, all_configs=False):
        if not all_configs:
            bdirs = list()
            if os.path.isdir(self.build_directory):
                bdirs.append(self.build_directory)
            return {'known_configs': bdirs, 'unknown_configs': list()}

        # build directory name pattern:
        # 'build-<tc_name>[-<profile>]...[-release]'
        build_names = ["build-sys-%s-%s" % (platform.system().lower(),
                                            platform.machine().lower())]
        qibuild_cfg = qibuild.config.QiBuildConfig()
        qibuild_cfg.read(create_if_missing=True)
        config_names = qibuild_cfg.configs.keys()
        build_names.extend(["build-" + x for x in config_names])
        build_prefix = self.build_config.build_prefix
        if build_prefix:
            to_list = os.path.join(build_prefix)
            if os.path.exists(to_list):
                dirs = os.listdir(to_list)
            else:
                dirs = list()
        else:
            dirs = os.listdir(self.path)
        ret = {'known_configs': list(), 'unknown_configs': list()}
        for bdir in dirs:
            if bdir in build_names:
                ret['known_configs'].append(bdir)
            elif bdir.startswith("build-"):
                ret['unknown_configs'].append(bdir)
        for k in ret.keys():
            if build_prefix:
                ret[k] = [os.path.join(build_prefix, x, self.name) for x in ret[k]]
            else:
                ret[k] = [os.path.join(self.path, x) for x in ret[k]]
        return ret
Return a dictionary containing the build directory list
dataset/ETHPy150Open aldebaran/qibuild/python/qibuild/project.py/BuildProject.get_build_dirs