Pkg_resources.resource_filename Is Not Extracting Files
I want to package a project that contains (and uses) template html files and distribuite it as an egg. Since I’m using tornadoweb, which requires file paths to point to html fil
Found the cause of the issue. As @erykson noted I was using the wrong directory.
After replacing
html_path = resource_filename(__name__, "html")
with
html_path = resource_filename(Requirement.parse("myproj"), "html")
everything works fine.
Post a Comment for "Pkg_resources.resource_filename Is Not Extracting Files"