organising images and functions in different scripts in sikuli
I have all images in a folder say 'Images.sikuli' with an empty Images.py file.
Now I have created another sikuli script lie below to assign variables to images
import os
import sys
myPath = os.path.
if not myPath in sys.path: sys.path.
imagePath=
sys.path.
import Images
reload(Images)
icon=''
##UI TEST##
UI={}
UI ["icon"]=" shortcut icon.png"# this image is in imported images file . just assgning the name icon to this image
this file will have only images with assigned names
Now I have written another sikuli script to define functions using this image
import os
import sys
Path = os.path.
if not Path in sys.path: sys.path.
from UI_Images import*
reload(UI_Images)
def Launch_app(img):
if exists(img):
Launch_app(icon)
resulting in an error
[error] Region.find(text): text search is currently switched off
[error] Region.exists: seems that imagefile could not be found on disk
can you please help
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by Sreelekshmi
- by Sreelekshmi
Can you help with this problem?
Provide an answer of your own, or ask Sreelekshmi for more information if necessary.