I would suggest to use pkg_resources to get the binary. This also enables getting the binary when the package is zipped (for some reason). I also read somewhere that this is the better approach.
import pathlib
from pkg_resources import resource_filename
binaries_dir = pathlib.Path(resource_filename("imageio", "binaries"))
I would suggest to use
pkg_resources
to get the binary. This also enables getting the binary when the package is zipped (for some reason). I also read somewhere that this is the better approach.I could create a PR.