aroberge / friendly

Aimed at Python beginners: replacing standard traceback by something easier to understand
https://friendly-traceback.github.io/docs/index.html
MIT License
325 stars 9 forks source link

Enable debug mod for all users having PYTHONDEVMODE environment variable #223

Closed JulienPalard closed 3 years ago

JulienPalard commented 3 years ago

The dev mode enable many modules to enter a dev mode, I think this would be a good idea to have this for friendly too.

We may, or may not, reuse the PYTHONDEVMODE variable though, we could use a FRIENDLY_DEBUG variable if you don't want friendly to switch to dev mode for too many people.

In Python 3.7+ we could use sys.flags.dev_mode, but this attribute does not exist in 3.6 so I stick to the os.environ.