Custom image path for 1 function
Is it possible for me to set a custom image path for just one function in the script?
Meaning when it's calling that function it searches for images in that function at a different location then the default sikuli folder?
eg:
def find_img_
image1 = "C:\temp\
if exists(image1):
Please advise how if possible, thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Sikuli Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- 2020-08-30
- Last query:
- 2020-08-30
- Last reply:
- 2020-08-29
RaiMan (raimund-hocke) said : | #1 |
def find_img_
image1 = r"C:\temp\
if exists(image1):
click() # clicks last match
RaiMan (raimund-hocke) said : | #4 |
- check wether the image is available in the directory
- absolute path
- double-back-slash or r"..." with single backslash
post what you have in your script
RaiMan (raimund-hocke) said : | #7 |
The docs would have helped:
Pattern(
|
#11 |
Has to be
if exists(
instead of
if Pattern(
xyz_User (userseven) said : | #12 |
Thanks Manfred Hampl, that solved my question.