-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mar 26, 2009, at 3:07 PM, Olemis Lang wrote:

On Thu, Mar 26, 2009 at 2:52 PM, Barry Warsaw <ba...@python.org> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mar 26, 2009, at 2:43 PM, Olemis Lang 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.


Really ... ? What are all these for ?

E.g. find all the doctests under foo.bar.docs


Could you explain this a little more pls ? You mean ... using doctest
finders in a module (even inside a zip file ;) that's already loaded ?

Sure ... else I dont understand ...

Here's a concrete example. I have a bunch of .sql files inside the mailman.database package. Their file names encode a sort order. I want to load each one in order and apply them to my database. I'd like to be able to find all these .sql files (which are intermixed with .py files in the same package) without having to use os.listdir() because that forces the package to live on the file system.

Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBScv4SnEjvBPtnXfVAQIVXgP/eBYSmfYHkebECPVDmCpewZVC9ydi4WdI
agKW41CKPh6PwFFSq35u41KjXEIBIvAcVM9wbYy3zUieTdY+RVe2ceQM/fGILzny
bsd2uLuNHMh0af2fen8JaY1DIbKfKrO3Ea4puvr7Uw1EGjN5IShA0WSgWpO5Ggs7
OKkhmXlPe0A=
=sLWb
-----END PGP SIGNATURE-----
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to