sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13801
Re: [Question #210973]: Sikuli code organization / code reuse
Question #210973 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/210973
David posted a new comment:
--2. in a flat organization ...
... where all .sikuli files are in one folder, there is no need for sys.path manipulation.
just saying
import sub
will find the sub.sikuli in the same folder as the importing .sikuli resides.
I've tried this method in the past and I always end up with the error: TypeError: 'module' object is not callable
For example, if I do the following I will get the error:
import sub
class usesSub:
def s1(self):
s = Sub()
s.doSomething()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.