sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21140
Re: [Question #235881]: Have to close and reopen Sikuli after editing any imported modules
Question #235881 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235881
Status: Open => Answered
Roman Podolyan proposed the following answer:
For combating this problem with RC3 I used for import code like this:
==========
# my module import
sys.path.append("/Users/username/scriptfolder.sikuli/")
if 'mymodule' in sys.modules:
del sys.modules['mymodule']
mymodule = None
del mymodule
import mymodule
==========
Didn't test it with 1.0.1 so far, but you can give it a try. Replace
path string and module name with yours (of course).
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.