sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07814
Re: [Question #146640]: import some-script.sikuli: needs from sikuli.Sikuli import * in some-script.sikuli
Question #146640 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/146640
Jason D Tran posted a new comment:
I am seeing similar issue:
Create.sikuli
---------
from sikuli.Sikuli import *
def MyCreate():
openApp("Safari")
Test.sikuli
---------
import os
myPath = os.path.dirname(getBundlePath())
if not myPath in sys.path: sys.path.append(myPath)
import Create
Create.MyCreate()
I got this error:
------
[error] Stopped
[error] An error occurs at line 6
[error] Error message:
Traceback (most recent call last):
File "/var/folders/rd/4sd05nwd5fx6h9464rcgzqb80000gn/T/sikuli-tmp9063608243646235246.py", line 6, in
Create.MyCreate()
File "/Users/fitlab/Desktop/Sikuli/Create.sikuli/Create.py", line 2, in MyCreate
NameError: global name 'openApp' is not defined
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.