Python Finding all packages inside a package, even when in an egg

Posted by cool-RR on Stack Overflow See other posts from Stack Overflow or by cool-RR
Published on 2010-05-09T13:02:39Z Indexed on 2010/05/09 13:08 UTC
Read the original article Hit count: 266

Filed under:
|
|
|
|

Given a Python package, how can I automatically find all its sub-packages?

I used to have a function that would just browse the file system, looking for folders that have an __init__.py* file in them, but now I need a method that would work even if the whole package is in an egg.

© Stack Overflow or respective owner

Related posts about python

Related posts about packages