← Back to team overview

sikuli-driver team mailing list archive

[Question #667876]: how do I use an environment variable in a Click statment

 

New question #667876 on Sikuli:
https://answers.launchpad.net/sikuli/+question/667876

if exists("os.environ('USERPROFILE')\Desktop.sikuli\exit.png"):
    click("os.environ('USERPROFILE')\Desktop.sikuli\exit.png")

I am trying to use an environment variable in the if exists 
and click statements, but I do not know the correct syntax.

Can you help me?

Thanks.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.