dangerzone
dangerzone copied to clipboard
Have a better approach to detecting debug mode
The current way that the code detects if we're running in debug mode is not ideal:
getattr(sys, "dangerzone_dev", False):
It hijacks the sys
module to add something unrelated. To cite @apyrgio:
This has started to become so common, that we probably need to move it under a common module.