(self)
Initialize in background thread
Initialize in background thread
Initialize in background thread
def initialize_bg(self):
        """Initialize in background thread"""
        if not util.check_program('airbase-ng'):
            util.Error('\'airbase-ng\' not found in local path.')
            return False

        util.Msg('Initializing access point..')
        thread = Thread(target=self.initialize)
        thread.start()

        sleep(2)
        if self.running:
            return True
        else:
            return False
def initialize_bg ( self ) : if not util . check_program ( 'airbase-ng' ) : util . Error ( '\'airbase-ng\' not found in local path.' ) return False util . Msg ( 'Initializing access point..' ) thread = Thread ( target = self . initialize ) thread . start ( ) sleep ( 2 ) if self . running : return True else : return False