668 import cubes |
668 import cubes |
669 cubes.__path__ = cls.cubes_search_path() |
669 cubes.__path__ = cls.cubes_search_path() |
670 |
670 |
671 @classmethod |
671 @classmethod |
672 def load_available_configs(cls): |
672 def load_available_configs(cls): |
673 for confmod in ('web.webconfig', 'etwist.twconfig', |
673 for confmod in ('web.webconfig', |
674 'server.serverconfig', 'pyramid.config'): |
674 'server.serverconfig', 'pyramid.config'): |
675 try: |
675 try: |
676 __import__('cubicweb.%s' % confmod) |
676 __import__('cubicweb.%s' % confmod) |
677 except ImportError as exc: |
677 except ImportError as exc: |
678 cls.warning('failed to load config module %s (%s)', |
678 cls.warning('failed to load config module %s (%s)', |
679 confmod, exc) |
679 confmod, exc) |
680 |
680 |
681 @classmethod |
681 @classmethod |
682 def load_cwctl_plugins(cls): |
682 def load_cwctl_plugins(cls): |
683 cls.cls_adjust_sys_path() |
683 cls.cls_adjust_sys_path() |
684 for ctlmod in ('web.webctl', 'etwist.twctl', 'server.serverctl', |
684 for ctlmod in ('web.webctl', 'server.serverctl', |
685 'devtools.devctl', 'pyramid.pyramidctl'): |
685 'devtools.devctl', 'pyramid.pyramidctl'): |
686 try: |
686 try: |
687 __import__('cubicweb.%s' % ctlmod) |
687 __import__('cubicweb.%s' % ctlmod) |
688 except ImportError as exc: |
688 except ImportError as exc: |
689 cls.warning('failed to load cubicweb-ctl plugin %s (%s)', |
689 cls.warning('failed to load cubicweb-ctl plugin %s (%s)', |