Example #1
0
def saveAvatar(avatar, file):
	data = pptextension.getPPTData()
	currTime = time.localtime()
	timeArr = []
	for timeElem in currTime:
		timeArr.append(timeElem)		
	data.append(timeArr)
	newtime = time.clock() - initialTime
	data.append(newtime)
	file.write(repr(data) + '\n')
	file.flush()
Example #2
0
def saveAvatarData(filePointerForAvatarData, initialTime):
    #  print "filePointerForAvatarData = " + str(filePointerForAvatarData)
    if filePointerForAvatarData.closed is False:
        data = []
        if some_global_variables.PPT1:
            data = pptextension.getPPTData()
        currTime = time.localtime()
        timeArr = []
        for timeElem in currTime:
            timeArr.append(timeElem)
        data.append(timeArr)
        newtime = time.clock() - initialTime
        data.append(newtime)
        filePointerForAvatarData.write(repr(data) + "\n\n")
        filePointerForAvatarData.flush()