コード例 #1
0
    def webui_command(self, options):
        """
        Handles the 'webui' CLI command.

        :param options: argparse options
        """
        if self.is_daemon:
            log.error('Webui or daemon is already running.')
            return
        # TODO: make webui an enablable plugin in regular daemon mode
        try:
            pkg_resources.require('flexget[webui]')
        except pkg_resources.DistributionNotFound as e:
            log.error('Dependency not met. %s' % e)
            log.error(
                'Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.'
            )
            self.shutdown()
            return
        if options.daemonize:
            self.daemonize()
        self.is_daemon = True
        from flexget.ui import webui
        self.task_queue.start()
        self.ipc_server.start()
        webui.start(self)
        self.task_queue.wait()
コード例 #2
0
ファイル: manager.py プロジェクト: H1ghT0p/Flexget
    def webui_command(self, options):
        """
        Handles the 'webui' CLI command.

        :param options: argparse options
        """
        if self.is_daemon:
            log.error('Webui or daemon is already running.')
            return
        # TODO: make webui an enablable plugin in regular daemon mode
        try:
            pkg_resources.require('flexget[webui]')
        except pkg_resources.DistributionNotFound as e:
            log.error('Dependency not met. %s' % e)
            log.error('Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.')
            self.shutdown()
            return
        if options.daemonize:
            self.daemonize()
        self.is_daemon = True
        from flexget.ui import webui
        self.task_queue.start()
        self.ipc_server.start()
        webui.start(self)
        self.task_queue.wait()
コード例 #3
0
ファイル: manager.py プロジェクト: parhuzamos/Flexget
 def webui_command(self, options):
     """
     :param options: argparse options
     """
     try:
         pkg_resources.require('flexget[webui]')
     except pkg_resources.DistributionNotFound as e:
         log.error('Dependency not met. %s' % e)
         log.error('Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.')
         self.shutdown()
         return
     if options.daemonize:
         self.daemonize()
     from flexget.ui import webui
     with self.acquire_lock():
         webui.start(self)
コード例 #4
0
ファイル: manager.py プロジェクト: andir/Flexget
 def webui_command(self, options):
     """
     :param options: argparse options
     """
     try:
         pkg_resources.require('flexget[webui]')
     except pkg_resources.DistributionNotFound as e:
         log.error('Dependency not met. %s' % e)
         log.error(
             'Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.'
         )
         self.shutdown()
         return
     if options.daemonize:
         self.daemonize()
     from flexget.ui import webui
     with self.acquire_lock():
         webui.start(self)
コード例 #5
0
ファイル: manager.py プロジェクト: edgarberlinck/Flexget
 def webui_command(self, options):
     """
     :param options: argparse options
     """
     # TODO: make webui an enablable plugin in regular daemon mode
     try:
         pkg_resources.require('flexget[webui]')
     except pkg_resources.DistributionNotFound as e:
         log.error('Dependency not met. %s' % e)
         log.error('Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.')
         self.shutdown()
         return
     if options.daemonize:
         self.daemonize()
     from flexget.ui import webui
     with self.acquire_lock():
         self.ipc_server.start()
         self.task_queue.start()
         webui.start(self)
         self.task_queue.wait()
コード例 #6
0
 def webui_command(self, options):
     """
     :param options: argparse options
     """
     # TODO: make webui an enablable plugin in regular daemon mode
     try:
         pkg_resources.require('flexget[webui]')
     except pkg_resources.DistributionNotFound as e:
         log.error('Dependency not met. %s' % e)
         log.error(
             'Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.'
         )
         self.shutdown()
         return
     if options.daemonize:
         self.daemonize()
     from flexget.ui import webui
     with self.acquire_lock():
         self.ipc_server.start()
         self.task_queue.start()
         webui.start(self)
         self.task_queue.wait()