├── README.md ├── better_exceptions_hook.pth ├── better_exceptions_hook └── __init__.py └── setup.py /README.md: -------------------------------------------------------------------------------- 1 | # better-exceptions-hook 2 | better-exceptions has added this feature in core. 3 | See [Qix-/better-exceptions](https://github.com/Qix-/better-exceptions) 4 | -------------------------------------------------------------------------------- /better_exceptions_hook.pth: -------------------------------------------------------------------------------- 1 | import better_exceptions_hook; better_exceptions_hook.hook() 2 | -------------------------------------------------------------------------------- /better_exceptions_hook/__init__.py: -------------------------------------------------------------------------------- 1 | def hook(): 2 | try: 3 | import better_exceptions 4 | except Exception: 5 | print("Can't hook better_exceptions.") 6 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | better-exceptions import hook 6 | """ 7 | import sys 8 | import os 9 | from setuptools import setup 10 | from distutils.sysconfig import get_python_lib 11 | 12 | site_packages_path = get_python_lib().replace(sys.prefix + os.path.sep, '') 13 | 14 | __version__ = "1.0.0" 15 | 16 | setup( 17 | name="better-exceptions-hook", 18 | version=__version__, 19 | description="Import hook for better-exceptions", 20 | author="Florian Mounier", 21 | author_email="paradoxxx.zero@gmail.com", 22 | url="https://github.com/paradoxxxzero/better-exceptions-hook", 23 | license="MIT", 24 | platforms="Any", 25 | packages=['better_exceptions_hook'], 26 | data_files=[(site_packages_path, ['better_exceptions_hook.pth'])], 27 | install_requires=['better_exceptions']) 28 | --------------------------------------------------------------------------------