Skip to content

Commit

Permalink
Log args
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Nov 2, 2023
1 parent c986e97 commit ee786c9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UltiMaker-Cura.spec.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,10 @@ app = UMBUNDLE(
'CFBundleTypeName': 'Model Files',
}]
},
'CFBundleTypeExtensions': [
'stl',
'obj',
'3mf',
'gcode'
]
){% endif %}
24 changes: 24 additions & 0 deletions cura/CuraApplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,30 @@

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:
Logger.info("i", "AAAAAAAAAA")
Logger.info("i", sys.argv)
urlArg = sys.argv[1]
Logger.info("i", "BBBBBBBBBB")
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 ee786c9

Please sign in to comment.