sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36941
Re: [Question #286612]: run .py file in sikuli
Question #286612 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/286612
Status: Open => Answered
RaiMan proposed the following answer:
# does not help anything for the called Python - obsolete
sys.path.append('D:\Sikuli')
# the parameter for run() must be a string
run("python helloworld.py")
it might be necessary, to use an absolute path for the helloworld.py
script, so Python can find it
Be aware of the string conventions with \:
- either use r"...." (no trailing \ )
- or double the \
e.g.
sys.path.append(r'D:\Sikuli') #or
sys.path.append('D:\\Sikuli')
standard Python knowledge ;-)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.