Question #177654 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/177654

RaiMan proposed the following answer:
not the whole loop, only the filename filter and possible processing replacing 
the 3 lines
            print f
            # here you would filter your jpeg's
            # and you might click in your app

e.g. (with correct indentation):

if not os.path.splitext(f)[1] in (".jpg", ".jpeg"): continue # the file filter
# from now on you are sure f contains a jpeg
# now position your app on that image 
# (no idea how to do that)
# and click what is needed

BTW: imports are only needed once in a script, usually at the beginning
of the script.

-- 
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

Reply via email to