#! /usr/bin/env python
import sys
import os

os.chdir("/usr/share/cgmail")
sys.path.append("/usr/share/cgmail")

from service.mainloop import MainLoop
from service.dbusinterface import get_dbus_interface

iface = get_dbus_interface()
#iface = None
if iface is not None:
	print "cgmail service is already active"
else:
	MainLoop()
