Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def jockey::ui::AbstractUI::__init__ (   self  ) 

Initialize system.

This parses command line arguments, detects available hardware,
and already installed drivers and handlers.

Definition at line 34 of file ui.py.

00034                       :
        '''Initialize system.
        
        This parses command line arguments, detects available hardware,
        and already installed drivers and handlers.
        '''
        self.gettext_domain = 'jockey'
        (self.argv_options, self.argv_args) = self.parse_argv()

        if self.argv_options.check:
            time.sleep(self.argv_options.check)

        gettext.textdomain(self.gettext_domain)

        # set up logging
        logging.raiseExceptions = False
        if self.argv_options.debug:
            logging.basicConfig(level=logging.DEBUG, 
                format='%(asctime)s %(levelname)s: %(message)s')
        else:
            logging.basicConfig(level=logging.WARNING, 
                format='%(levelname)s: %(message)s')

        self.init_strings()

        # TODO: use a locally caching driver db
        self.handlers = detection.get_handlers(self,
            driverdb=detection.LocalKernelModulesDriverDB(),
            handler_dir=self.argv_options.handler_dir,
            mode=self.argv_options.mode)

    def _(self, str, convert_keybindings=False):


Generated by  Doxygen 1.6.0   Back to index