dangerzone icon indicating copy to clipboard operation
dangerzone copied to clipboard

Have a better approach to detecting debug mode

Open deeplow opened this issue 1 year ago • 0 comments

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.

deeplow avatar Jun 13 '23 05:06 deeplow