Change default image path (for saving screenshots)

Asked by Srinivas Raju B

The following question is asked by <Harry Readinger >

             Wondering if there is a way to tell Sikuli NOT to save screenshots in the scripts directory, but to save them elsewhere (a shared image directory). Mostly for convenience, as it would be nice not to have to either move all my screenshots, because I'm lazy.

<Srini> I am also looking for this. Not out side the .sikuli folder, but atleast seperate folder under .sikuli, where the name of the folder is customizable.
 Can we add this as a feature request.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Not a feature yet. Feel free to post a request bug.

When working with an image repository, I usually have a naming convention for my images and use one .sikuli to function as the "repo manager" and use the import feature to make the images available.

another possibility is to generally use variables for the images, so the

# image_repository.sikuli contains
img1 = "some-image.png"
img2 = "some-image.png"

and in your scripts you say:

from image_repository import *
find(img1)

This moves the image naming convention to the variable names.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

@ Harry
when manipulating a question, you should subscribe to it ;-)

Revision history for this message
RaiMan (raimund-hocke) said :
#3

@ Harry
Sorry, I think I was wrong. It was Srini's way to reference another one of your question.

Can you help with this problem?

Provide an answer of your own, or ask Srinivas Raju B for more information if necessary.

To post a message you must log in.