--- a/cubicweb/cwconfig.py Fri Mar 24 14:56:48 2017 +0100
+++ b/cubicweb/cwconfig.py Tue Mar 28 15:03:15 2017 +0200
@@ -512,7 +512,6 @@
@classmethod
def available_cubes(cls):
cubes = set()
- prefix = 'cubicweb_'
for entry_point in pkg_resources.iter_entry_points(
group='cubicweb.cubes', name=None):
try:
@@ -521,11 +520,11 @@
continue
else:
modname = module.__name__
- if not modname.startswith(prefix):
+ if not modname.startswith('cubicweb_'):
cls.warning('entry point %s does not appear to be a cube',
entry_point)
continue
- cubes.add(modname[len(prefix):])
+ cubes.add(modname)
# Legacy cubes.
for directory in cls.cubes_search_path():
if not exists(directory):