← Back to team overview

sikuli-driver team mailing list archive

[Question #237795]: Import another .sikuli module file to this .sikuli file

 

New question #237795 on Sikuli:
https://answers.launchpad.net/sikuli/+question/237795

like this.
Follow TestA.sikuli content:
a="abc"
def hey():
    print(a)

Follow TestB.sikuli content:
import testA
testA.hey()

run the TestB script, the result is successfu.
But if you change the TestA's content, like this,
a="efg", then run the TestB, the result also is  "abc".

Because the sikuli will invoke the jython.jar  pythoninterpreter execfile, so the second time, it will not generate a new $py.class file. 

Dear, how to resolve this issue?


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.