Skip to content

Improve dynamic libraries loading #17

Open
@B3QL

Description

@B3QL

Currently lexactivator is using __file__ variable for path resolution (see: https://github.com/cryptlex/lexactivator-python/blob/master/cryptlex/lexactivator/lexactivator_native.py#L47)
The problem with that approach is that the code assumes it will have access to the file system which is not always true.

From Python 3.8, ResourceReader and importlib.resources are recommended ways of accessing package resources that enables interoprability across the Python ecosystem with projects like https://github.com/indygreg/PyOxidizer.

A more in-depth description of various loading mechanisms is available here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions