← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #207167]: Empty report - HTMLTestRunner through command line

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--1. base_dir
it seems you want the directory, where your script is located:

base_dir = os.path.dirname(getBundlePath())

this does it.

--2. where to put Jython modules used in more than one script (Mac)
to copy those modules into the script folder (bundle on Mac) is not a good idea.
They should be in a central place.

A standard place, that is already in sys.path is
/Applications/Sikuli-IDE.app/Contents/Resources/Java/Lib

So just open the bundle and add this Lib folder (it does not exist yet)
and copy those more often used modules there.

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