I wrote a package that imports pkg_resource
package provided by distribute 0.6.35. I import pkg_resource
because I need its resource_filename
to get the path of a built-in data. However, the pkg_resource
is not built-in in python3 and need to install. About this, I have two questions:
Why Python3 doesn't provide
pkg_resource
in its official distribution? Does that meanpkg_resource
is deprecated orPython3
has an alternative package forpkg_resource
built-in?If Python3 doesn't have alternative package for
pkg_resource
, how can I write my own version ofresource_filename
with built-in libraries? Is it easy to do?
Thanks!