sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15229
Re: [Question #217195]: Running test from terminal has different results than with the IDE
Question #217195 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/217195
Status: Open => Answered
RaiMan proposed the following answer:
The cause might be the fact, that in the IDE imports are only done once
during the whole time, the IDE is running.
So if you rerun a script more than once, the import is not repeated.
This might hide the problem, that you see, when you run a script from
scratch, as it is done from command line.
If you want to verify the effect in the IDE
instead of only
import mod
code this
import mod
reload(mod)
and for
from mod import *
it is
import mod
reload(mod)
from mod import *
This makes, that the import is repeated from scratch every time you
rerun your script in the IDE.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.