trailofbits / polyfile

A pure Python cleanroom implementation of libmagic, with instrumented parsing from Kaitai struct and an interactive hex viewer
Apache License 2.0
339 stars 22 forks source link

Switches to using importlib for resource loading #3416

Closed ESultanik closed 1 year ago

ESultanik commented 1 year ago

This fixes an issue if PolyFile is installed from an sdist into a discrete venv with resources stored separately from the code.