New question #687520 on Sikuli:
https://answers.launchpad.net/sikuli/+question/687520

2.0.1-2019-11-22_16:54/Mac10.15.2/Java13(64)13.0.1+9
having trouble with exists not finding external image with absolute path
So I thought that there must be something wrong with the image

did exists using a screen shot in the ide
and exists worked ok
in finder - show package contents - copied image - saved image to my image 
directory - 
/Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings/Code/Data/Images_Mac/Ruler.png
added another exists with the path above of the copied image - not working 
Code:
if 1 == 1:
    setRect(8,102,1400,915)
    v_Image = 
"/Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings/Code/Data/Images_Mac/Ruler.png"
    print "^ " * 40
    print exists(v_Image)
    v_Image = "1577259194316.png" # this is the embedded image
    print exists(v_Image)
    print "= " * 40
    exit(0)

output :-
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ 
None
M[1350,551 55x39]@S(0) S:0.77 C:1377,570 [188 msec]
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 







-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to