Beremiz_service.py
changeset 1953 5736d25bb393
parent 1934 67b06b30f2bd
child 1955 a1ea9856013a
equal deleted inserted replaced
1952:0c20fc810d61 1953:5736d25bb393
   423             pyro.initServer()
   423             pyro.initServer()
   424             self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
   424             self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
   425             # pyro never frees memory after connection close if no timeout set
   425             # pyro never frees memory after connection close if no timeout set
   426             # taking too small timeout value may cause
   426             # taking too small timeout value may cause
   427             # unwanted diconnection when IDE is kept busy for long periods
   427             # unwanted diconnection when IDE is kept busy for long periods
   428             self.daemon.setTimeout(60);
   428             self.daemon.setTimeout(60)
   429             self.Start()
   429             self.Start()
   430             self.daemon.requestLoop()
   430             self.daemon.requestLoop()
   431             self.daemon.sock.close()
   431             self.daemon.sock.close()
   432 
   432 
   433     def Restart(self):
   433     def Restart(self):
   588         NS.WorkingDir = WorkingDir
   588         NS.WorkingDir = WorkingDir
   589 
   589 
   590     # Find pre-existing project WAMP config file
   590     # Find pre-existing project WAMP config file
   591     _wampconf = os.path.join(WorkingDir, "wampconf.json")
   591     _wampconf = os.path.join(WorkingDir, "wampconf.json")
   592 
   592 
   593     # If project's WAMP config file exits, override default (-c) 
   593     # If project's WAMP config file exits, override default (-c)
   594     if os.path.exists(_wampconf):
   594     if os.path.exists(_wampconf):
   595         wampconf = _wampconf
   595         wampconf = _wampconf
   596 
   596 
   597     if wampconf is not None:
   597     if wampconf is not None:
   598         try:
   598         try: