equal
deleted
inserted
replaced
720 cls.cls_adjust_sys_path() |
720 cls.cls_adjust_sys_path() |
721 for ctlmod in ('web.webctl', 'etwist.twctl', 'server.serverctl', |
721 for ctlmod in ('web.webctl', 'etwist.twctl', 'server.serverctl', |
722 'devtools.devctl', 'pyramid.pyramidctl'): |
722 'devtools.devctl', 'pyramid.pyramidctl'): |
723 try: |
723 try: |
724 __import__('cubicweb.%s' % ctlmod) |
724 __import__('cubicweb.%s' % ctlmod) |
725 except ImportError: |
725 except ImportError as exc: |
|
726 cls.warning('failed to load cubicweb-ctl plugin %s (%s)', |
|
727 ctlmod, exc) |
726 continue |
728 continue |
727 cls.info('loaded cubicweb-ctl plugin %s', ctlmod) |
729 cls.info('loaded cubicweb-ctl plugin %s', ctlmod) |
728 for cube in cls.available_cubes(): |
730 for cube in cls.available_cubes(): |
729 cubedir = cls.cube_dir(cube) |
731 cubedir = cls.cube_dir(cube) |
730 pluginfile = join(cubedir, 'ccplugin.py') |
732 pluginfile = join(cubedir, 'ccplugin.py') |