예제 #1
0
파일: SrvApp.py 프로젝트: yoori/rtbserver
 def __init__(self, srvName, srvDesc, defCfgFilePath):
     Singleton.__init__(self)
     self.workDir = None
     self.cfgFilePath = None
     # used by relativePath
     self.workDir = self.workDir or os.getcwd()
     self.appDir = os.path.dirname(sys.argv[0])
     self.action = self._parseArgs()  # what to do
     pidFilePath = '%s.pid' % self.relativePath(self.workDir, srvName)
     Daemon.__init__(self, pidFilePath, srvDesc)
     self.cfgFilePath = self.cfgFilePath or self.relativePath(
         self.appDir, defCfgFilePath)
     self.daemonMode = False
     self.signalMutex = threading.Lock()  # signal processing flag
예제 #2
0
 def __init__(self):
     Singleton.__init__(self)
     self.__options = {}
예제 #3
0
 def __init__(self):
     Singleton.__init__(self)
     self.Settings = ConfigParser()
     self.Settings.optionxform = str
예제 #4
0
 def __init__(self):
     Singleton.__init__(self)
     self.__options = {}
예제 #5
0
 def __init__(self):
     Singleton.__init__(self)
예제 #6
0
 def __init__(self):
     Singleton.__init__(self)