layout.py 文件源码

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

项目:stereo 作者: suda 项目源码 文件源码
def _check_paths(self):
        if not os.path.exists(self.data_file):
            raise click.UsageError("Data file not found: %s\n" % self.data_file)
        if self.template_file is not None and not os.path.exists(self.template_file):
            raise click.UsageError("Template file not found: %s\n" % self.template_file)
        if os.path.exists(self.output_dir) and not os.access(self.output_dir, os.W_OK):
            raise click.UsageError("Output is not writable: %s\n" % self.output_dir)

        if not os.path.exists(self.output_dir):
            os.makedirs(self.output_dir)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号