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

Method update_address

puppet_extension.py:171–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 httpd.serve_forever()
170
171 def update_address(self):
172 try:
173 sleep(3)
174 settings = {"address": self.model_webserver_address, "model": self.get_setting("model"), "scale": self.get_setting("scale"), "extra_w": self.get_setting("extra_w"), "extra_h": self.get_setting("extra_h")}
175 requests.post(f'{self.base_url}/set_settings', json={'settings': settings})
176 except Exception as e:
177 print(e)
178 return
179
180 def restart_puppet(self):
181 if self.lockfile is not None and os.path.isfile(self.lockfile):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected