sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07057
Re: [Question #179493]: Reading from Excel
Question #179493 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/179493
Status: Open => Answered
RaiMan proposed the following answer:
I tested on my Win7 32Bit, latest Sikuli, latest Java:
-- I put the xlrd folder from the unzipped xlrd download into the folder
Lib (has to be created) of the Sikuli X program folder. Since this is
already referenced in sys.path, no need to handle sys.path separately.
-- In a script in Sikuli IDE
import xlrd
book = xlrd.open_workbook(r"D:\sikluli\myfile.xls")
I had no problem with this.
remember: file names on windows in strings have to have double
backslashes or you use (preferred) raw strings: r"some text containing \
backslashes"
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.