Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ZipProvider do not support resource_filename #402

@ghost

Description

Originally reported by: moimael (Bitbucket: moimael, GitHub: moimael)


HI,

I use pkg_resources for a complex install script. This script is packaged as a .pyz. pkg_resources work when i use it to load modules inside my zip but do not work when I want to extract and have access to resource files via resource_filename.

here is the faulty method :

    if not self.egg_name:
        raise NotImplementedError(
            "resource_filename() only supported for .egg, not .zip"
        )

It would be really helpfull to have this, thx !


Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.enhancementmajor
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions