<div dir="ltr"><div class="gmail_default" style="color:#000000"><span style="color:rgb(34,34,34)">On Tue, May 15, 2018 at 10:11 PM Rob Speer <<a href="mailto:rspeer@luminoso.com">rspeer@luminoso.com</a>> wrote:</span><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_8085763159353160271inbox-inbox-uyb8Gf" style="color:rgb(33,33,33)"><div class="m_8085763159353160271inbox-inbox-F3hlO">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.</div></div></div></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">​

<span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">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?</span></div></div></div>