Beispiel #1
0
	def appendOSPathHeader(self):
		oSWrapper = OSWrapper(logging.getLogger("OSWrapper.py"))
		relativePathString = "."
		if TEMPDIRECTORY.find(relativePathString) != 0:
			self.tempDirectory = oSWrapper.getOSPathHeader() + TEMPDIRECTORY
		if BACKUPDIRECTORY.find(relativePathString) != 0:
			self.backupDirectory = oSWrapper.getOSPathHeader() + BACKUPDIRECTORY
		if LOGDIRECTORY.find(relativePathString) != 0:
			self.logDirectory = oSWrapper.getOSPathHeader() + LOGDIRECTORY
Beispiel #2
0
	def initLoggerFile(self):
		oSWrapper = OSWrapper(logging.getLogger("OSWrapper.py"))
		if not oSWrapper.validPath(self.logDirectory):
			oSWrapper.makeDirectory(self.logDirectory)
		if not oSWrapper.validPath(self.logDirectory + LOGFILE):
			oSWrapper.makeFile(self.logDirectory + LOGFILE)