Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/lief/__init__.py: 86%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import os
2import sys
3import traceback
4if len(__path__) > 0 and __path__[0] not in sys.path:
5 from . import _lief
6 from ._lief import *
7 from ._lief import __version__, __tag__, __commit__, __is_tagged__, __extended__
9 if __extended__:
10 from ._lief import __LIEF_MAIN_COMMIT__, __LIEF_EXTENDED_VERSION_STR__, __extended_version__
12 # cf. https://github.com/pytorch/pytorch/blob/60a3b7425dde97fe8b46183c154a9c3b24f0c733/torch/__init__.py#L467-L470
13 for attr in dir(_lief):
14 candidate = getattr(_lief, attr)
15 if type(candidate) is type(_lief):
16 sys.modules.setdefault(f"lief.{attr}", candidate)