sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #57190
Re: [Question #697175]: passing string to shell using runscript
Question #697175 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/697175
Status: Open => Answered
Manfred Hampl proposed the following answer:
What you need has nothing to do with Sikulix, but is plain Python syntax.
You need string concatenation to construct the value for "mail_sending".
Something like this:
def start_user():
print('sending mail to user')
mail_sending = 'powershell \n'
mail_sending = mail_sending + '$EmailFrom = "' + MyMail + '\n'
mail_sending = mail_sending + '$EmailTo = "' + email + '\n'
etc.
Another possibility is substitution with %s
see e.g. https://www.pythonforbeginners.com/concatenation/string-
concatenation-and-formatting-in-python
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.