File: cgmailservice.py

package info (click to toggle)
cgmail 0.4.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,140 kB
  • ctags: 563
  • sloc: python: 4,269; makefile: 96; sh: 14
file content (17 lines) | stat: -rwxr-xr-x 352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/env python
import sys
import os

cwd = os.getcwd()
sys.path.append(cwd)
sys.path.append(os.path.join(cwd, "src"))

from src.service.mainloop import MainLoop
from src.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()