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

Class CustomHTTPRequestHandler

src/gui_controller.py:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected