Red-GUI.py 文件源码

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

项目:Red-GUI 作者: ScarletRav3n 项目源码 文件源码
def run(self):
        interpreter = sys.executable

        if verify_requirements() is None:
            print("You don't have the requirements to start Red. "
                  "Install them from the launcher.")
            if not INTERACTIVE_MODE:
                exit(1)

        if self.autostart is True:
            cmd = (interpreter, "launcher.py", "--start", "--auto-restart")
        else:
            cmd = (interpreter, "launcher.py", "--start")
        try:
            code = subprocess.call(cmd, creationflags=subprocess.CREATE_NEW_CONSOLE, shell=False)
        except KeyboardInterrupt:
            code = 0
        print("Red has been terminated. Exit code: %d" % code)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号