← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #168008]: Import not working on Debian 6.0.2.

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- this is how import should work

myScriptPath = "/some absolute path/"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
from Images1 import *

where /some absolute path/Images1.sikuli is a script containing images,
that was saved with Sikuli IDE.

--- images on other systems
wether images captured on one system, can be reused on others, cannot be answered generally. As long as the images are the same pixel by pixel on the other system it should work (usually the case inside a browser window for web content).
You have to try this out and in case it does not work use the import solution to have different sets of images.

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