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)
setup.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录