App() is not defined in imported def
Asked by
core
[error] script [ test ] stopped with error in line 4
[error] NameError ( global name 'App' is not defined )
test.sikuli:
myScriptPath = "c:\\Sik\
if not myScriptPath in sys.path: sys.path.
import testLib
testLib.testFn()
testLib.sikuli:
def testFn():
testpad = App("calc.exe")
App.
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.
popup("Test Fn")
return()
testFn()
Why the error when using an imported sikuli fn?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask core for more information if necessary.
To post a message you must log in.