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
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected