New question #263610 on Sikuli:
https://answers.launchpad.net/sikuli/+question/263610
When I addImagePath(path) using a Jython script I encounter odd behavior. The
following example is from the interactive Jython console, but the same error
occurs when I try to run scripts via Eclipse.
>>> import org.sikuli.basics.SikulixForJython
>>> from sikuli import *
>>> getImagePath()
[]
>>> addImagePath("C:\\Users\\aidma")
>>> getImagePath()
[]
>>> ImagePath.add("C:\\Users\\aidma")
False
>>> getImagePath()
[]
As you can see, the imagePath() is not being modified.
Interestingly, the imagePath *does* change when I getBundlePath():
>>> getImagePath()
[]
>>> getBundlePath()
u'/C:'
>>> getImagePath() #Why would getting a value change a value?
[u'/C:/']
All and any advice on how to properly set the imagePath via Jython is
appreciated. Thanks!
_____ EXTRA INFO! _____
When I addImagePath(path) using the SikulixIDE everything works as expected.
The script:
addImagePath("C:\\Users\\aidma")
print getImagePath()
Results in the output:
SikuliScriptsImagePathTest.sikuli',
u'C:/Users/aidma''>[u'C:/SikuliScripts/ImagePathReader.sikuli',
u'C:/Users/aidma']
--
You received this question notification because you are a member of
Sikuli Drivers, which 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