How to save the images in the script folder , if they are not referenced by direct names in the script
Asked by
Anshu
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 ??
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.