Created
May 21, 2013 00:22
-
-
Save yuuichi-fujioka/5616698 to your computer and use it in GitHub Desktop.
find all submodule recursively
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pkgutil | |
import hoge | |
for importer, module_name, is_pkg in pkgutil.walk_packages(hoge.__path__, hoge.__name__ + "."): | |
print module_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment