cubicweb/pyramid/core.py
changeset 12550 c6f832df2f34
parent 12542 85194bd49119
--- a/cubicweb/pyramid/core.py	Thu Mar 28 10:33:54 2019 +0100
+++ b/cubicweb/pyramid/core.py	Thu Mar 28 11:00:55 2019 +0100
@@ -398,12 +398,7 @@
 
     cwcfg = config.registry['cubicweb.config']
     for cube in cwcfg.cubes():
-        try:
-            pkgname = 'cubicweb_{}'.format(cube)
-            mod = __import__(pkgname)
-        except ImportError:
-            pkgname = 'cubes.{}'.format(cube)
-            mod = __import__(pkgname)
-            mod = getattr(mod, cube)
+        pkgname = 'cubicweb_{}'.format(cube)
+        mod = __import__(pkgname)
         if hasattr(mod, 'includeme'):
             config.include(pkgname)