Ejemplo n.º 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()
Ejemplo 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()
Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 6
0
Archivo: BugFile.py Proyecto: 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)