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

[error] script [ test ] stopped with error in line 4
[error] NameError ( global name 'App' is not defined )

test.sikuli:

myScriptPath = "c:\\Sik\\test\\testLIb"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import testLib
testLib.testFn()


testLib.sikuli:

def testFn(): 
    testpad  = App("calc.exe")
    App.open(testpad) 
    popup("Test Fn")
    return()




When the def is in the  main sikuli, it works without error.

test2.sikuli:

def testFn(): 
    testpad  = App("calc.exe")
    App.open(testpad) 
    popup("Test Fn")
    return()

testFn()


Why the error when using an imported sikuli fn?

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to