py2.py 文件源码

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

项目:packyou 作者: llazzaro 项目源码 文件源码
def clone_github_repo(self):
        """
            Clones a github repo with a username and repository_name
        """
        if not (self.username and self.repository_name):
            return
        repository_local_destination = join(MODULES_PATH, 'github', self.username, self.repository_name)
        if not exists(repository_local_destination):
            Repo.clone_from(self.repo_url, repository_local_destination, branch='master')
            init_filename = join(repository_local_destination, '__init__.py')
            open(init_filename, 'a').close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号