← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #706071]: Sikuli 2.0.5 IDE after change i need to restart IDE

 

Question #706071 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/706071

    Status: Open => Answered

RaiMan proposed the following answer:
Not a dumb question, but too little information about how you use the
utils.sikuli.

Since the IDE behaviour when running a script is to always use the
latest saved version (even, when autosave is activated), I guess, that
you are importing the utils script from the index script.

something like this:

# main.sikuli
import sub
print "in main"
sub.run()

# sub.sikuli
from sikuli import *
def run():
    print "in sub"

I just tested on Windows in IDE 2.0.5 having both scripts open in their
tabs.

When doing a change in sub and then run main (even without having saved
sub - done automatically), the change is reflected:

# first run of main
in main
in sub

# change the print in sub

# second run of main
in main
in subx

and vice versa. So it simply works.

In the same IDE session imported scripts are remembered and reloaded, when changed.
The only related option is the autosave on run in the IDE settings 

So please check your setup and put sample code here.

My test IDE 2.0.5 has a build stamp 21-03-03

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