write_build_targets.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:CMakeBuilder 作者: rwols 项目源码 文件源码
def is_enabled(self):
        """You may only run this command if there's a `build_folder` with a
        `CMakeCache.txt` file in it. That's when we assume that the project has
        been configured."""
        try:
            build_folder = self.window.project_data()["settings"]["cmake"]["build_folder"]
            build_folder = sublime.expand_variables(build_folder, self.window.extract_variables())
            return os.path.exists(os.path.join(build_folder, "CMakeCache.txt"))
        except Exception as e:
            return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号