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

    Status: Open => Answered

RaiMan proposed the following answer:
the description of os.remove():
Remove (delete) the file path. If path is a directory, OSError is raised; see 
rmdir() below to remove a directory. This is identical to the unlink() function 
documented below. On Windows, attempting to remove a file that is in use causes 
an exception to be raised; 

Your problem definitely is caused by the fact, that the file is not
closed in the Windows sense (which is much more restrictive, then on
...ix systems (Mac, Linux, ...).

meaning:
wb.release_resources()

does not do the close() of the file itself.

BTW:
for path creation like
targetdir = (self.FullPath + "\\" + base)

we have 
os.path.join(self.FullPath, base)

which saves the path delimiter handling

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to