Changeset View
Changeset View
Standalone View
Standalone View
conf.py
Show All 16 Lines | |||||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | ||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
# | # | ||||
""" | """ | ||||
Kolab configuration utility. | Kolab configuration utility. | ||||
""" | """ | ||||
from __future__ import print_function | |||||
import logging | import logging | ||||
import os | import os | ||||
import sys | import sys | ||||
sys.path.append('.') | sys.path.append('.') | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
try: | try: | ||||
import pykolab.logger | import pykolab.logger | ||||
except ImportError, e: | except ImportError, e: | ||||
print >> sys.stderr, _("Cannot load pykolab/logger.py:") | print(_("Cannot load pykolab/logger.py:"), file=sys.stderr) | ||||
print >> sys.stderr, "%s" % e | print("%s" % e, file=sys.stderr) | ||||
sys.exit(1) | sys.exit(1) | ||||
import pykolab | import pykolab | ||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
pykolab = pykolab.Conf() | pykolab = pykolab.Conf() | ||||
pykolab.finalize_conf() | pykolab.finalize_conf() | ||||
pykolab.run() | pykolab.run() |