Qix-/better-exceptions

why "export BETTER_EXCEPTIONS=1" works?

Closed this issue · 1 comments

Hi, thanks for your awesome project :)

I'm curious about why just exporting an env variable could make hook fucntion register expectionhook to python.

This doesn't seem straightforward compared with next two lines of code:

from better_exceptions import hook
hook()

Beg your explanation, thanks.

Oh, I see. It seems that code here reigisters your hook.pth.