Question #706170 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/706170
Summary changed to:
[2.0.5] after changing a method imported inside another method, IDE restart
needed
Description changed to:
confirmed: auto reload for imported methods only works for the 1st level
below main.
workaround: run the main script in parallel with the IDE from command
line, while editing and saving script content in the IDE.
caveat: you will have the startup delay of some seconds with every run
from command line.
-------------------------------------------------------------------------------------
this is my code:
_____________________________________
#main.sikuli
from sikuli import *
import sys
import sub1
sub1.dotest1()
_____________________________________
#sub1.sikuli
from sikuli import *
import sys
import sub2
def dotest1():
sub2.finalteste()
_____________________________________
#sub2.sikuli
from sikuli import *
import sys
def finaltest():
print("test x")
________________________________________
if i change print("test x") for ("text y")after i run main.sikuli i get
the error:
[error] IDE: Run Script: internal error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'sub2' is not defined
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp