Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created May 21, 2013 00:22
Show Gist options
  • Save yuuichi-fujioka/5616698 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/5616698 to your computer and use it in GitHub Desktop.
find all submodule recursively
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