(self)
| 131 | return os.path.isdir(self.webview_path) and os.path.isdir(self.puppet_path) |
| 132 | |
| 133 | def install(self): |
| 134 | if not os.path.isdir(self.webview_path): |
| 135 | subprocess.check_output(["git", "clone", "https://github.com/NyarchLinux/live2d-lipsync-viewer.git", self.webview_path]) |
| 136 | subprocess.check_output(["wget", "-P", os.path.join(self.models_dir), "http://mirror.nyarchlinux.moe/Arch.tar.xz"]) |
| 137 | subprocess.check_output(["tar", "-Jxf", os.path.join(self.models_dir, "Arch.tar.xz"), "-C", self.models_dir]) |
| 138 | subprocess.Popen(["rm", os.path.join(self.models_dir, "Arch.tar.xz")]) |
| 139 | elif not os.path.isdir(self.puppet_path): |
| 140 | subprocess.check_output(["git", "clone", "https://github.com/NyarchLinux/DesktopPuppet", self.puppet_path]) |
| 141 | |
| 142 | def update_puppet(self, button): |
| 143 | subprocess.check_output(["bash", "-c", "cd " + self.puppet_path + " && git pull"]) |
nothing calls this directly
no outgoing calls
no test coverage detected