Skip to content

breaking api change in 1.1.0 for importlib_resources.path(package, folder_name) #85

@jaraco

Description

@jaraco

In GitLab by @RonnyPfannschmidt on Mar 2, 2020, 03:38

in a project we used
with importlib_resources.path(package, "data") as data_path:

to get a folder path (as back then traversal had not been supported)

with the update to 1.1.0 we see a
IsADirectoryError: [Errno 21] Is a directory: '/builds/*******/*****/.venv/lib64/python3.7/site-packages/***/data'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions