Skip to content

Instantly share code, notes, and snippets.

@yaleman
Created October 16, 2012 01:41
Show Gist options
  • Save yaleman/3896818 to your computer and use it in GitHub Desktop.
Save yaleman/3896818 to your computer and use it in GitHub Desktop.
I'm going to hell for this...
for plugin in self._init_plugins:
# I'm sure I'll go to hell for this.
exec( "import {}".format( plugin ) )
print "Loading plugin {}".format( plugin )
eval( 'self.register_plugin( {} )'.format( self._init_plugins[plugin] ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment