Revision 675
Added by Borja Sotomayor over 14 years ago
commands.py | ||
---|---|---|
24 | 24 |
from haizea.cli.optionparser import Option |
25 | 25 |
from haizea.cli import Command |
26 | 26 |
from mx.DateTime import TimeDelta |
27 |
import xml.etree.ElementTree as ET |
|
28 | 27 |
import haizea.common.defaults as defaults |
29 | 28 |
import sys |
30 | 29 |
import os |
... | ... | |
32 | 31 |
import signal |
33 | 32 |
from time import sleep |
34 | 33 |
|
34 |
try: |
|
35 |
import xml.etree.ElementTree as ET |
|
36 |
except ImportError: |
|
37 |
# Compatibility with Python <=2.4 |
|
38 |
import elementtree.ElementTree as ET |
|
35 | 39 |
|
40 |
|
|
36 | 41 |
class haizea(Command): |
37 | 42 |
""" |
38 | 43 |
This is the main Haizea command. By default, it will start Haizea as a daemon, which |
Also available in: Unified diff
A few minor changes so Haizea will work with Python 2.4