コード例 #1
0
	def setLogFilePath(self, LogFilePath, bSaveToOptions=False):
		if (bSaveToOptions):
			AutologOpt.setFilePath(LogFilePath)
			BugOptions.write()
		if (not LogFilePath or LogFilePath == "Default"):
			LogFilePath = BugPath.findOrMakeDir("Autolog")
		self.LogFilePath = LogFilePath
		self.updateLogFile()
コード例 #2
0
ファイル: autolog.py プロジェクト: tarjintor/Civ4-K-Mod
 def setLogFilePath(self, LogFilePath, bSaveToOptions=False):
     if (bSaveToOptions):
         AutologOpt.setFilePath(LogFilePath)
         BugOptions.write()
     if (not LogFilePath or LogFilePath == "Default"):
         LogFilePath = BugPath.findOrMakeDir("Autolog")
     self.LogFilePath = LogFilePath
     self.updateLogFile()
コード例 #3
0
ファイル: autolog.py プロジェクト: trym-b/Caveman2Cosmos
	def setLogFilePath(self, LogFilePath, bSaveToOptions=False):
		if bSaveToOptions:
			AutologOpt.setFilePath(LogFilePath)
			BugOptions.write()
		if not LogFilePath or LogFilePath == "Default":
			LogFilePath = SP.joinModDir("Autolog")
		if not os.path.isdir(LogFilePath):
			os.makedirs(LogFilePath)
		self.LogFilePath = LogFilePath
		self.updateLogFile()
コード例 #4
0
	def setLogFileName(self, LogFileName, bSaveToOptions=False):
		if (bSaveToOptions):
			AutologOpt.setFileName(LogFileName)
			BugOptions.write()
		self.LogFileName = LogFileName
		self.updateLogFile()
コード例 #5
0
ファイル: autolog.py プロジェクト: tarjintor/Civ4-K-Mod
 def setLogFileName(self, LogFileName, bSaveToOptions=False):
     if (bSaveToOptions):
         AutologOpt.setFileName(LogFileName)
         BugOptions.write()
     self.LogFileName = LogFileName
     self.updateLogFile()