← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #679317]: organising images and functions in different scripts in sikuli

 

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

RaiMan proposed the following answer:
ok, then:

import os
import sys
from sikuli import*
imagePath="C:\\Tools"
if not imagePath in sys.path: sys.path.append(imagePath)
from Images import*
reload(Images) 

... and (not sure) if ImagePath is not automatically added,
additionally:

addImagePath(os.path.join(imagePath, "Images.sikuli"))

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.