(self)
| 178 | self._puppet_process = subprocess.Popen(get_spawn_command() + ["python3", os.path.join(self.puppet_path,"src", "main.py")]) |
| 179 | |
| 180 | def __start_webserver(self): |
| 181 | folder_path = self.webview_path |
| 182 | class CustomHTTPRequestHandler(SimpleHTTPRequestHandler): |
| 183 | def translate_path(self, path): |
| 184 | # Get the default translate path |
| 185 | path = super().translate_path(path) |
| 186 | # Replace the default directory with the specified folder path |
| 187 | return os.path.join(folder_path, os.path.relpath(path, os.getcwd())) |
| 188 | self.httpd = HTTPServer(('127.0.0.1', 0), CustomHTTPRequestHandler) |
nothing calls this directly
no test coverage detected