← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673348]: using xlrd: Error attempting to delete file after wb.release_resources()

 

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

Ron Turrentine gave more information on the question:
Here is a rather humorous solution, but it works:

My script opens an explorer window to the folder where my Excel file
lies (using subprocess.Popen), then finds the Excel icon, right clicks
on it, then clicks "Delete".

This is more Sikuli-esque than Pythonic, but at the moment I can't think
of any other way. :-/

You can view a screenshot of the script here:
https://imgur.com/a/1YZSH45

I'd rather use os.remove, though, if I can figure out how to get it to
work.

Thanks!

Ron

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