sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31952
Re: [Question #265619]: Is it possible to import 'Levenshtein distance between two given strings' in order to detect mispelled words in sikuli?
Question #265619 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265619
Status: Open => Answered
RaiMan proposed the following answer:
I just checked: fuzzywuzzy can be imported with SikuliX.
The usage you have to sort out for yourself.
The steps:
- download from:
https://pypi.python.org/pypi/fuzzywuzzy
- unpack the ...tar.gz
- do NOT run setup!!! (this is for use with Python only)
- in the folder where you have your sikulixsetup stuff (you might use
any other folder as well) create a folder Lib (you might name it as you
like though, but that is some Python naming convention)
- into this folder copy the folder fuzzywuzzy from the downloaded stuff.
(the folder contains a __init__.py)
- in your script add
addImportPath("<absolute path to the above created Lib folder>") # take care for the backslashes!
import fuzzywuzzy as FW
FW.whatever()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.