debug.py 文件源码

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

项目:dango.py 作者: khazhyk 项目源码 文件源码
def update_and_restart(self, ctx):
        await ctx.message.add_reaction("a:loading:393852367751086090")
        await utils.run_subprocess("git pull --rebase")
        await utils.run_subprocess("python -m pip install --upgrade -r requirements.txt")
        await ctx.message.remove_reaction("a:loading:393852367751086090", ctx.me)
        await ctx.message.add_reaction(":helYea:236243426662678528")
        log.info("Restarting due to update_and_restart")
        os.execve(sys.executable, ['python', '-m', 'dango'], os.environ)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号