sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #19417
Re: [Question #232844]: Can Sikuli search the sub-folders to find screenshots?
Question #232844 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232844
Parn Yin posted a new comment:
I still can't get the expected result I want.
But I found another stupid way to fix that:
def set_screenshot_path(my_screenshot_path):
my_screenshot_path = repr(my_screenshot_path)
my_screenshot_path = str(my_screenshot_path.replace("\\\\", "\\"))
my_screenshot_path = my_screenshot_path.strip("'")
And I found str() is needed for getBundlPath in
print ("[INFO] The current screenshot path is " + str(getBundlePath()))
otherwise eclipse will say:
TypeError: cannot concatenate 'str' and 'NoneType' objects
So I will still use str().
You really helped me a lot!
Thank you very much RaiMan!
Have a good day!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.