equal
deleted
inserted
replaced
626 def load_cwctl_plugins(cls): |
626 def load_cwctl_plugins(cls): |
627 from logilab.common.modutils import load_module_from_file |
627 from logilab.common.modutils import load_module_from_file |
628 cls.cls_adjust_sys_path() |
628 cls.cls_adjust_sys_path() |
629 for ctlfile in ('web/webctl.py', 'etwist/twctl.py', |
629 for ctlfile in ('web/webctl.py', 'etwist/twctl.py', |
630 'server/serverctl.py', |
630 'server/serverctl.py', |
631 'devtools/devctl.py', 'goa/goactl.py'): |
631 'devtools/devctl.py',): |
632 if exists(join(CW_SOFTWARE_ROOT, ctlfile)): |
632 if exists(join(CW_SOFTWARE_ROOT, ctlfile)): |
633 try: |
633 try: |
634 load_module_from_file(join(CW_SOFTWARE_ROOT, ctlfile)) |
634 load_module_from_file(join(CW_SOFTWARE_ROOT, ctlfile)) |
635 except ImportError as err: |
635 except ImportError as err: |
636 cls.error('could not import the command provider %s: %s', |
636 cls.error('could not import the command provider %s: %s', |