sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21141
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
RaiMan proposed the following answer:
@ Roman
Thanks. forgot about this solution.
But will this work with <from foo import *> too, since the imported names are not purged from the current context?
So will this work too:
if 'mymodule' in sys.modules:
del sys.modules['mymodule']
mymodule = None
del mymodule
from mymodule import *
the recommended solution
import foo
reload foo
from foo import *
works with the exception that the first time first level code in foo
will be executed twice.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.