Created
December 3, 2011 17:02
-
-
Save gsakkis/1427571 to your computer and use it in GitHub Desktop.
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 | |
def recursive_import(package): | |
for imp, name, ispkg in pkgutil.walk_packages(package.__path__, package.__name__ + '.'): | |
yield __import__(name, fromlist=[name]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment