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()
Esempio n. 2
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()
Esempio n. 3
0
	def openSDFile(self):
		szPath = BugAutolog.getFilePath()
		if (not szPath or szPath == "Default"):
			szPath = BugPath.findOrMakeDir("Autolog")
		if (not os.path.isdir(szPath)):
			os.makedirs(szPath)
		szFile = os.path.join(szPath, self.FileName)
		self.SDFile = codecs.open(szFile, 'a', 'utf-8')
		BugConfigTracker.add("SDFile_Log", szFile)
Esempio n. 4
0
 def openSDFile(self):
     szPath = BugAutolog.getFilePath()
     if (not szPath or szPath == "Default"):
         szPath = BugPath.findOrMakeDir("Autolog")
     if (not os.path.isdir(szPath)):
         os.makedirs(szPath)
     szFile = os.path.join(szPath, self.FileName)
     self.SDFile = codecs.open(szFile, 'a', 'utf-8')
     BugConfigTracker.add("SDFile_Log", szFile)
Esempio n. 5
0
	def openFile(self, bForce=False, sWrite='a'):
		if (self.HoldOpen and not bForce):
			return

		szPath = BugFile.getFilePath()
		if (not szPath or szPath == "Default"):
			szPath = BugPath.findOrMakeDir("Autolog")
		if (not os.path.isdir(szPath)):
			os.makedirs(szPath)

		szFile = os.path.join(szPath, self.FileName)
		self.File = codecs.open(szFile, sWrite, 'utf-8')
		BugConfigTracker.add("Autolog_Log", szFile)
Esempio n. 6
0
File: BugFile.py Progetto: AP-ML/DTM
	def openFile(self, bForce=False, sWrite='a'):
		if (self.HoldOpen and not bForce):
			return

		szPath = BugFile.getFilePath()
		if (not szPath or szPath == "Default"):
			szPath = BugPath.findOrMakeDir("Autolog")
		if (not os.path.isdir(szPath)):
			os.makedirs(szPath)

		szFile = os.path.join(szPath, self.FileName)
		self.File = codecs.open(szFile, sWrite, 'utf-8')
		BugConfigTracker.add("Autolog_Log", szFile)