sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41174
Re: [Question #423503]: To run python file containing sikuli scripts by double clicking it
Question #423503 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/423503
chaitu posted a new comment:
this is my sample code..
from time import sleep
for i in range(01,10):
print "welcome to india"
sleep(1)
from sikuli import *
import org.sikuli.script.ImagePath;
ImagePath.setBundlePath("D:\Sikuli_CMD");
s=Screen()
s.click("hema1.png")
.........................................it is executing fine from both eclipse and cmd...
but when i double click that python file then it python prompt is opened
and it is printing Welcome to india 10 times then it is showing error as
Traceback(most recent call last):
File "D:\M1037536\jython1\firstprog\__init__.py", line 9,in <module>
from sikuli import *
Import Error: No module named sikuli
please help me out .
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.