From b182292f917f1b1056c7975c4b10f530d6dcb78d Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Wed, 1 Nov 2023 17:44:01 +0100 Subject: [PATCH] Log args --- cura/CuraApplication.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 722a728863f..0400de8ebfb 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -129,6 +129,22 @@ numpy.seterr(all = "ignore") +import urllib.request as urlreq +from io import StringIO as strio + + +class PyProtoHandler(urlreq.BaseHandler): + def python_open(self, req): + fullUrl = req.get_full_url() + Logger.log("i", "LOOKFORTHIS %s", fullUrl) + return strio(fullUrl) + + +opener = urlreq.build_opener(PyProtoHandler()) +urlreq.install_opener(opener) + +Logger.log("i", "LOOKFORTHISarg %s", sys.argv) + class CuraApplication(QtApplication): # SettingVersion represents the set of settings available in the machine/extruder definitions. # You need to make sure that this version number needs to be increased if there is any non-backwards-compatible