github.py 文件源码

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

项目:web 作者: pyjobs 项目源码 文件源码
def _check_repository(self):
        """
        Check if repository exist and clone it if not.
        Then fill _repo instance attribute et make a pull.
        :return:
        """
        if not os.path.exists("%s/.git" % self._repository_path):
            Repo.clone_from(self.REPOSITORY_ADDRESS, self._repository_path)

        self._repo = Repo(self._repository_path)
        self._pull()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号