Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Vinodh Yelugoti posted a new comment:
Hello Raiman -
I have a probelm with reload function! It starts executing complete
module.
for eg:
#Script1
from sikuli import *
def function1():
..
function1()
def
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
RaiMan posted a new comment:
@vinodh
see your own question
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Description changed to:
I can import Sikuli files all fine, but how do I import a file but not
be forced to run it immediately upon running the program?
This results in my program running the imported Sikui
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Description changed to:
Example:
import module
program does stuff
reload(module) (within a function, FYI)
When I run the program for the FIRST time after launching the Sikuli
IDE, the imported Sikuli file
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Summary changed to:
How to import Sikuli file but not run it immediately?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Status: Open = Answered
RaiMan proposed the following answer:
by design, import is not intended to use it to run the contained script code
completely.
imported modules usually contain stuff that is
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Status: Answered = Solved
Test confirmed that the question is solved:
Thanks very much for the quick reply RaiMan, this workaround does work
well.
--
You received this question notification because
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Test confirmed that the question is solved:
Thanks RaiMan, that solved my question.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Test posted a new comment:
Point to note too:
I still had to reload the module within that function.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
RaiMan posted a new comment:
should not be necessary.
Why do you think, you need it?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
RaiMan posted a new comment:
Then it is no magic, I guess:
When working in the IDE, an imported module is only loaded the first
time the script is run. On a rerun, the import simply does nothing,
because in
Question #242288 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242288
Description changed to:
I can import sikuli files all fine, but how do I import the file but not
be forced to run it immediately upon importing it? This results in my
program running the files once through,
New question #242288 on Sikuli:
https://answers.launchpad.net/sikuli/+question/242288
I can import sikuli files all fine, but how do I import the file but not be
forced to run it immediately upon importing it? This results in my program
running the files once through, when in actuality they
13 matches
Mail list logo