← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #261751]: Import sikuli file from a sikuli file fails

 

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

Scott posted a new comment:
I've tried the above in Ruby and get errors.  Mac OS 10.9.5/Ruby/SikuliX 1.1.0.
Both files in the same folder..
# content script a.sikuli
import b

# content script b.sikuli
from sikuli import *
print "from b"

#I get:
NameError: undefined local variable or method `b' for main:Object
(root) at /Users/MBP17/Desktop/Sikuli/a.sikuli:1

[error] script [ a ] stopped with error in line 1
[error] NameError ( (NameError) undefined local variable or method `b' for main:Object )
[error] --- Traceback --- error source first
line: class ( method ) file 
1: RUBY ( (root) ) /Users/MBP17/Desktop/Sikuli/a.sikuli
[error] --- Traceback --- end --------------

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