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

Method restart_puppet

puppet_extension.py:180–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected