← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #173063]: Is there any import files which we use to create a custom log file like the Tempfile module

 

Question #173063 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/173063

    Status: Solved => Open

prabhu is still having a problem:
shutil.move(self.logFilePath, "CACACA.ini")

By adding this code in the above  script i am getting a error


In logger [error] Stopped [error] An error occurs at line 103 [error] Error message: Traceback (most recent call last):  File "C:\Users\amd\AppData\Local\Temp\sikuli-tmp2554199092749455325.py", line 103, in    Mylog=Logger(prefix = prefix,dir = currentDir)  File "C:\Users\amd\AppData\Local\Temp\sikuli-tmp2554199092749455325.py", line 33, in __init__  self.__initLocalLogFile()  File "C:\Users\amd\AppData\Local\Temp\sikuli-tmp2554199092749455325.py", line 53, in _Logger__initLocalLogFile  self.__initLogFile()  File "C:\Users\amd\AppData\Local\Temp\sikuli-tmp2554199092749455325.py", line 91, in _Logger__initLogFile  shutil.move(self.logFilePath, "CACACA.ini")  File "C:\Program Files\Sikuli X\Lib\shutil.py", line 206, in move  os.unlink(src)  File "C:\Program Files\Sikuli X\Lib\os.py", line 342, in remove  raise OSError(0, "couldn't delete file", path) OSError: [Errno 0] couldn't delete file: u'D:\\CATAS_Final\\Automation_TACC\\SikuliIDE\\CAan-bmh.ini'

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.