Skip to content

Instantly share code, notes, and snippets.

@spaghetti-
Created August 12, 2012 05:59
Show Gist options
  • Save spaghetti-/3330030 to your computer and use it in GitHub Desktop.
Save spaghetti-/3330030 to your computer and use it in GitHub Desktop.
for module in c.get('modules', 'modules').split(','):
try:
__import__("modules." + module.strip())
except ImportError:
print "No module named modules.%s found." % (module.strip())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment