Qix- / better-exceptions

Pretty and useful exceptions in Python, automatically.
MIT License
4.59k stars 202 forks source link

Initial hyperlink implementation. #96

Closed stuaxo closed 5 years ago

stuaxo commented 5 years ago

Initial implementation of hyperlinks, set BETTER_EXCEPTIONS_HYPERLINKS=1 to activate.

This is not as useful as I expected as there line numbers can't be implemented yet [1], I'd probably still use this though.

I assume this needs tests, I haven't looked at how to do these yet.

[1] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#gistcomment-2872221

stuaxo commented 5 years ago

TODO: I should probably not output a hyperlink if the filename is something like <console>

stuaxo commented 5 years ago

(renamed branch, recreating PR)