sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36951
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:
Supposing you have Python 2.7 installed on your machine (I guess in
c:\Python27), then you should check, wether this path is on the system
path at runtime. If this is not the case, then simply saying python
cannot work.
The easiest check:
in a commandline window evaluate, what you have to enter, to get your helloworld.py running.
this then is the command you have to use as the string for run().
again:
neither of this is needed in a SikuliX script:
import sys # never needed - already done internally
sys.path.append(r'C:\Python27') # not relevant for SikuliX and useless for Python run by run()
so simply this should work:
run("python helloworld.py")
BTW: why are you doing this?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.