← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #679317]: organising images and functions in different scripts in sikuli

 

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

    Status: Answered => Open

Sreelekshmi is still having a problem:
still have same issue

from sikuli import*
import os
import sys
imagePath="C:\\Tools\\Images.sikuli"
addImagePath(os.path.join(imagePath, "Images.sikuli"))
from Images import*
reload(Images)
def Launch_app(img):    
    if exists(img,20):
        doubleClick(getLastMatch())
        wait(MSLS_Window,15)
Launch_app(icon)

[error] script [ MSLS_Functions ] stopped with error in line 7
[error] NameError ( name 'Images' is not defined )

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