← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #227109]: HTMLTestRunner with unittest

 

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

RaiMan proposed the following answer:
If you are using Eclipse, you have
- PyDev installed and configured
- with Eclipse external Jython installation (telling Eclipse PyDev, waht Python/Jython to use)

the path to this Jython is meant as jython-installation. This contains a
folder Lib, which in turn has a site-packages folder, that is intended
for user modules.

If you have done this and it does not work, you have another method in Eclipse to run your scripts. 
Nevertheless, this method sets up a python path, that constitutes sys.path for the scripts. This path always contains at least one folder, where you can place your global modules.

So how do you run your scripts in Eclipse?

Uuups, just taking into account, that you run the scripts outside Eclipse. If yes, then you have to take care, that sys.path at runtime contains the location where Jython can find the  HTMLTestRunner module.
When using Sikuli on Windows, then a global folder, being in sys.path automatically is
c:\Program Files\Sikuli X\Lib
supposing a standard Sikuli installation. The folder must be created, if it was not used before.

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