Changing conf.app.modules and conf.app.root to string representations.

This commit is contained in:
Ryan Petrello
2012-03-05 15:23:08 -05:00
parent 4d18835e9f
commit 7ba057b4d2
8 changed files with 47 additions and 15 deletions

View File

@@ -35,7 +35,7 @@ class Command(paste_command.Command):
def get_package_names(self, config):
if not hasattr(config.app, 'modules'):
return []
return [module.__name__ for module in config.app.modules if hasattr(module, '__name__')]
return config.app.modules
def import_module(self, package, name):
parent = __import__(package, fromlist=[name])