← 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:
Raiman, thanks but this isn't working either.

Here's my code

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)
sys.path.append(os.path.dirname(subPath))
import assignment1


And here's what I get:

[error] script [ Xcode2 ] stopped with error in line 10
[error] NameError ( !!WHILE IMPORTING!! name 'getBundlePath' is not defined )

Please advise , thank you!

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