Skip to content

Commit

Permalink
Log args
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Nov 1, 2023
1 parent c986e97 commit 5970c28
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cura/CuraApplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,27 @@

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)

try:
urlArg = sys.argv[1]
urlreq.urlopen(urlArg)
except Exception as e:
print("ERROR: %s" % e)
pass

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

0 comments on commit 5970c28

Please sign in to comment.