From 7ba057b4d2f8f7ad3735f98f6deacb5d6df0e736 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Mon, 5 Mar 2012 15:23:08 -0500 Subject: Changing `conf.app.modules` and `conf.app.root` to string representations. --- pecan/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pecan/deploy.py') diff --git a/pecan/deploy.py b/pecan/deploy.py index 36218d1..bd7f9d8 100644 --- a/pecan/deploy.py +++ b/pecan/deploy.py @@ -4,7 +4,7 @@ def deploy(config_module_or_path): set_config(config_module_or_path) for module in getattr(conf.app, 'modules'): try: - module_app = import_module('%s.app' % module.__name__) + module_app = import_module('%s.app' % module) if hasattr(module_app, 'setup_app'): return module_app.setup_app(conf) except ImportError: -- cgit v1.2.1