setup.py 文件源码

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

项目:osrs-lightbox-solver 作者: subjectivelyobjective 项目源码 文件源码
def run(self):
        if sys.platform.startswith("linux"):
            cmd = "which scrot"
            proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.DEVNULL,
                stderr=subprocess.STDOUT)
            proc.wait()
            if proc.returncode != 0:
                print("Did not find scrot! You might have to install it "
                    "yourself to satisfy pyscreenshot.")
        if not sys.platform.startswith("win32"):
            # We defer to pip for *nix platforms because it actually works on
            # them.
            print("This can take a while.")
            pip.main(["install", "--user", "."])
            return
        for mod in manual_install_modules:
            self.install_manually(mod)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号