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