コード例 #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
ファイル: ScOptions.py プロジェクト: tomkins/spellcraftcalc
 def __init__(self):
     Singleton.__init__(self)
     self.__options = {}
コード例 #5
0
 def __init__(self):
     Singleton.__init__(self)
コード例 #6
0
ファイル: Cached.py プロジェクト: MatiasGCF/guicavane
 def __init__(self):
     Singleton.__init__(self)