Ejemplo n.º 1
0
 def __init__ (self):
     '''
     constructor to initialize various threads
     '''
     self.welcome ()
     self.pars = boat_pars ()
     self.bs = boatstate ()                      # full boatstate
     self.init_crew ()                           # init crew
     self.start ()                               # start crew
     return
    def __init__(self):
        """
        constructor sets up analyzer and kills the subprocess
        """

        self.pars = boat_pars()
        self.boatstate = boatstate()  # full boatstate
        self.bs = self.boatstate.bs  # bs dict
        self.wdir_listener = wdir_listener(bs=self.boatstate, pars=self.pars)

        # now try to kill the wdir_daemon subprocess
        try:
            self.wdir_listener.wdir.kill()
        except:
            pass

        return