[Haizea] Haizea in eclipse

Borja Sotomayor borja at borjanet.com
Tue May 11 09:39:11 CDT 2010


Hi,

> I'd like to import Haizea src tree into Eclipse and then I'd like to know
> some information about its specific configuration to make development easy
> in eclipse?

I actually do most of the Haizea development on Eclipse with PyDev
(http://pydev.org/). You should be able to simply import the trunk
version of Haizea (or the 1.1 branch) into Eclipse, and add "src" to
PYTHONPATH (right-click on the project and this will be one of the
options).

To run Haizea from inside Eclipse, I usually create a short Python
program that loads a configuration file (the equivalent of running
"haizea -c ..." from the command line). For example:

from haizea.core.configfile import HaizeaConfig
from haizea.common.config import ConfigException
import sys

CONFIGFILE = "..." # Write absolute path to configuration file here

try:
    CONFIG = HaizeaConfig.from_file(CONFIGFILE)
except ConfigException, msg:
    print >> sys.stderr, "Error in configuration file:"
    print >> sys.stderr, msg
    exit(1)
from haizea.core.manager import Manager
MANAGER = Manager(CONFIG)
MANAGER.start()


Cheers!
-- 
Borja Sotomayor
PhD Candidate in Computer Science, University of Chicago
http://people.cs.uchicago.edu/~borja/


More information about the Haizea mailing list