[issue44162] importlib.resources.path no longer supports directories
Filipe Laíns
report at bugs.python.org
Mon May 17 19:49:41 EDT 2021
Filipe Laíns <lains at riseup.net> added the comment:
Directories are not resources, the reason it previously worked was purely accidental.
I assume you already found a solution in https://github.com/python/importlib_resources/issues/85, which would be
importlib.resources.files(__package__) / 'dir'
Can this be closed then?
----------
nosy: +FFY00
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44162>
_______________________________________
More information about the Python-bugs-list
mailing list