← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268754]: put a variable as text into a Debug.log("image not found %", xyz)

 

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

    Status: Open => Answered

Eugene S proposed the following answer:
You have to specify the format of the variable you are using after the
"%" specifier.

Have a look here for a full list of format types:
https://docs.python.org/2/library/stdtypes.html#string-formatting-operations


In you case that could be:

xyz="somestring"
Debug.log("image not found %s", xyz)

so since "xyz" a string here, you specify that by using "%s"

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.