コード例 #1
0
ファイル: Plugin.py プロジェクト: Arn0ldus/wotmods
 def readConfig(self):
     value = FileUtils.readConfig(self.pluginName, getattr(self.__class__, 'myConf'))
     setattr(self.__class__,'myConf',value)
     if value.has_key('pluginEnable'):
         self.pluginEnable = value['pluginEnable']
     else:
         self.pluginEnable = True
コード例 #2
0
 def readConfig(cls):
     value = FileUtils.readConfig(cls.pluginName, cls.myGetAttr('myConf'))
     cls.mySetAttr('myConf', value)
     if value.has_key('pluginEnable'):
         cls.pluginEnable = value['pluginEnable']
     else:
         cls.pluginEnable = True
     if value.has_key('debug'):
         cls.debug = value['debug']
     else:
         cls.debug = False
     if cls.debug:
         print value
コード例 #3
0
ファイル: Plugin.py プロジェクト: IJOL/wotmods
 def readConfig(cls):
     value = FileUtils.readConfig(cls.pluginName, cls.myGetAttr('myConf'))
     cls.mySetAttr('myConf', value)
     if value.has_key('pluginEnable'):
         cls.pluginEnable = value['pluginEnable']
     else:
         cls.pluginEnable = True
     if value.has_key('debug'):
         cls.debug = value['debug']
     else:
         cls.debug = False
     if cls.debug:
         print value