A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-March/087750.html below:

[Python-Dev] "setuptools has divided the Python community"

[Python-Dev] "setuptools has divided the Python community" [Python-Dev] "setuptools has divided the Python community"glyph at divmod.com glyph at divmod.com
Fri Mar 27 06:19:35 CET 2009
On 26 Mar, 07:22 pm, barry at python.org wrote:
>One thing that /would/ be helpful though is the ability to list all 
>the resources under a specific package path.  This is (I think) one 
>use case that pkg_resource fails to support and it's the one place 
>that I've had to drop down to file system introspection.
>
>Think: the package-y flavor of 
>os.listdir(os.path.dirname(package.__file__))

FWIW, the Twisted spelling of this is:

from twisted.python.modules import getModule
getModule(__name__).filePath.parent().listdir()

(and yes, this works with zip files)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4