sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36953
Re: [Question #286612]: run .py file in sikuli
Question #286612 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/286612
Status: Answered => Open
Anusha is still having a problem:
I read your answer in another question and did this:
App.open("Python Shell")
App.focus("Python Shell") # use a suitable part of the command window title
wait(2)
type("execfile(\"helloworld.py\")"+Key.ENTER)
wait (2)
It worked :D
But i have to keep the python shell open before i run this script on sikuli.\
Why am i doing this:
Since I cannot use PyVISA in sikuli, I thought I could write the GUI automation part of the script in Sikuli and the device communication part in python since i can import pyvisa in python (assumption), and from sikuli i can call the python files when ever required.
What do u think?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.