Question #688984 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688984

    Status: Open => Answered

RaiMan proposed the following answer:
Running SikuliX 2.0.3?
Do you have a Python background? It is not a Python interpreter, it is Jython. 
The language is at level 2.7.

The IDE as such runs with one global Jython interpreter instance and hence an 
import is only done once.
If you use the scripts as .sikuli, there is an auto-reimport feature (so you 
might switch to .sikuli).
If your helper.py does not have any global side-effects, you can use 
reload("helper.py") (which is done for .sikuli automatically).
I will register an enhancement request to implement the auto-reimport for plain 
.py files as well (2.0.4)

If you run your stuff from commandline, it will work as expected.

So you might do your edits in the IDE and run the main.py from
commandline in parallel (be aware: some seconds startup time per run)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to