sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #39141
Re: [Question #304447]: How to reaload module which has been imported by a string
Question #304447 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/304447
Status: Open => Answered
RaiMan proposed the following answer:
I already told you with your other question about a similar case:
JUST PUT EVERY you-name-it.py file that you want to import (no matter
what it is intended to be used for) into a folder named you-name-
it.sikuli and then use
import you-name-it
with the latest nightly 1.1.1 there would be no need to use reload
anymore and if the imported script folder is in the same folder as the
importing script: no need to edit sys.path.
I really do not understand, why you refuse to accept this solution, that
is tailored to what one needs with the SikuliX IDE.
to issue an import for a script name in a variable:
exec("import " + varOfModuleName)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.