← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #243323]: How To import a .skl file --- workaround

 

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

Rubynator posted a new comment:
RE- Edited. Please disregard the previous one and review this one.

Thank you for that.

now I have this:
import org.sikuli.basics.FileManager as SFm
import os
scriptPath = os.path.join(os.path.dirname(os.path.dirname(getBundlePath())))
sub = os.path.join(scriptPath, "assignment1.skl")
subPath = SFm.unzipSKL(sub)
# put it on sys.path
sys.path.append(os.path.dirname(subPath))
# import it
from sikuli import assignment1

And I get this error message:
[error] script [ Xcode2 ] stopped with error in line 10
[error] ImportError ( cannot import name assignment1 )

What am I doing wrong?

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