sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29432
Re: [Question #258335]: Windows path variables
Question #258335 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258335
Status: Open => Answered
RaiMan proposed the following answer:
SikuliX at the function level needs absolute paths, means %xxx%
substitution is not supported nor .. path elements.
But you have the Python os module function
sysDrive = os.environ("SYSTEMDRIVE")
var1 = r"%s\notepad.exe" % sysDrive
which gets the current value from the environment and uses Python's
string substitution.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.