File: cgmail.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 (31 lines) | stat: -rwxr-xr-x 846 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /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.manager.accountswindow import AccountsWindow
from src.manager.dbusinterface import get_dbus_interface

cwd = os.getcwd()
sys.path.append(cwd)

print """
###################################################################
#
#  Warning: you are running cGmail from source package. If you
#  want to hack the code please remind that play button on account
#  manager will launch the installed version of cgmailservice (if there
#  is one). Changes to the code of the service will appear not reflected!!!
#
###################################################################
"""

iface = get_dbus_interface()
if iface is not None:
	print "There is already a running instance"
else:
	a = AccountsWindow()
	a.show()