On Tue, May 15, 2018 at 10:11 PM Rob Speer <rsp...@luminoso.com> wrote:
> From what I can tell, if you wanted to exclude '__init__.py' from Nginx in > particular, you would have to write an unconventional Nginx configuration, > where you determine whether a path refers to a static file according to a > regex that excludes things that end in '__init__.py'. Anything is possible, > but this would be a significant discouragement to using importlib. > Ok, I haven't dug into the details ("It should be easy!" :) ), but couldn't you implement a Finder that based its search on, say, 'data.toc' instead of '__init__.py' and graft it into importlib.resources?
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/