← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #214125]: Last part of script not running when called from another script.

 

Question #214125 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214125

    Status: Open => Needs information

RaiMan requested more information:
Before going further only to assure the situation:

You have a script called CreateCalendarEntry.sikuli, that contains

from sikuli import *
# some other stuff
create_calendar_entry() :
   # more stuff
   assert exists(Pattern("Meeting.png").similar(0.97))
   wait(.5)
   type(Key.F4, KeyModifier.CTRL)

and you have another script called main.sikuli in the same folder (or in
sys.path) containing

import CreateCalendarEntry
# some stuff
def ts_expanded_functions():
    CreateCalendarEntry.create_calendar_entry()
# more stuff
ts_expanded_functions()

and when you run main.sikuli, even after having saved both scripts and restarted the IDE, then the dialog window is not closed.
There are no errors at all. The script just finishes, without having closed the window.

pls. confirm.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.