Skip to content

[BUG] Use importlib.resources or encode assets into Python #54

Closed
@sethmlarson

Description

@sethmlarson

Describe the bug

The assets/ directory shouldn't use the filesystem directly, instead should use importlib.resources or load the data into Python similar to how the idna package does so.

This is to make charset_normalizer work in situations where there isn't a filesystem available like when being run from a zip file/static binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions