sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01962
[Question #151185]: How to save the images in the script folder , if they are not referenced by direct names in the script
New question #151185 on Sikuli:
https://answers.launchpad.net/sikuli/+question/151185
I have , say, about 20 baseline images for the script and named as , Page 1,Page 2,Page 3 etc.
So i just have a loop in the script to verify those and i am referring those using variable , instead of direct name.
So something like
baselline = "Page" + str(num) +".png" # where num is the counter and gets values 1,2,3....
Only problem is since there is no reference to "Page1.png" in the script , when i capture the images and save the script - the baseline images get deleted from the folder.
My workaround is to save those images in a separate folder and use then with reference to path .But is there simpler way to have them saved inside the same script folder ??
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.