sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47151
Re: [Question #669055]: Function in python file not running from sikuli
Question #669055 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669055
Description changed to:
I have written a sikuli script and then imported the python file. When I try to access a particular function (which is in the python file) from my sikuli script the required action is not performed. Sikuli is able to access the python file, if I run the sikuli script and there are any errors in the python file I can see them on sikuli logs. Just the function isn't running.
The files look similar to this
---Sikuli script---
import nameofpythonfile as lsyb
reload (lsyb)
class firstclass(object):
def __init__(self):
self.abc=lsyb.nameofpythonfile("Path of file")
#there are some other function in between
def search(self,p)
a=self.abc.func(p)
---python file---
def func(self,p):
print("Hello")
#some other functions
if __name__=="__main__":
The above file prints Hello when I run it directly but not when I run it
from sikuli.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.