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()
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()
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)
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)
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()
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()