← Back to team overview

sikuli-driver team mailing list archive

[Question #271020]: Problem with reload function?

 

New question #271020 on Sikuli:
https://answers.launchpad.net/sikuli/+question/271020

Hello Raiman -

I have a probelm with reload function! It starts executing complete
module.

for eg:

#Script1

from sikuli import *
def function1():
..
function1()

def function2()
..
funtion2()

#In script 2

import script1
reload(script1)

when i execute script2, it starts executing complete script1 i.e function1 and
function2!

What should i do if i want to execute only function2 of script1 in
script2?? But i also need dynamic changes of screen captures that i do
in script1 to be reflected in script2

Thanks,
VINODH

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.