| 148 | folder_path = self.webview_path |
| 149 | |
| 150 | class CustomHTTPRequestHandler(SimpleHTTPRequestHandler): |
| 151 | def translate_path(self, path): |
| 152 | path = super().translate_path(path) |
| 153 | return os.path.join(folder_path, os.path.relpath(path, os.getcwd())) |
| 154 | def log_message(self, format, *args): |
| 155 | pass # Suppress HTTP logs |
| 156 | |
| 157 | self.httpd = HTTPServer(('127.0.0.1', 0), CustomHTTPRequestHandler) |
| 158 | port = self.httpd.server_address[1] |
nothing calls this directly
no outgoing calls
no test coverage detected