MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / install

Method install

puppet_extension.py:133–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected