class IDClientDaemon: def __init__(self): signal.signal(signal.SIGINT, self.stop) if WIN32_FROZEN: static_path = os.path.join(os.path.dirname(os.path.abspath(sys.executable)), 'static') Win32StopThread(self.stop).start() else: static_path = None #default static path will be used signal.signal(signal.SIGINT, self.stop) self.server = MgmtServer('0.0.0.0', DAEMON_PORT, IdepositboxClient(), static_path) def start(self): try: self.server.run() except Exception, err: logger.error('IDClientDaemon error: %s'%err) logger.traceback_info()
class IDClientDaemon: def __init__(self): signal.signal(signal.SIGINT, self.stop) if WIN32_FROZEN: static_path = os.path.join( os.path.dirname(os.path.abspath(sys.executable)), 'static') Win32StopThread(self.stop).start() else: static_path = None #default static path will be used signal.signal(signal.SIGINT, self.stop) self.server = MgmtServer('0.0.0.0', DAEMON_PORT, IdepositboxClient(), static_path) def start(self): try: self.server.run() except Exception, err: logger.error('IDClientDaemon error: %s' % err) logger.traceback_info()