addImagePath() not changing the ImagePath
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.
>>> from sikuli import *
>>> getImagePath()
[]
>>> addImagePath(
>>> getImagePath()
[]
>>> ImagePath.
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:
addImagePa
print getImagePath()
Results in the output:
SikuliScri
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- aidma
- Solved:
- Last query:
- Last reply: