Ready for mentors
[cgmail.git] / cgmail
blob741f8031568fa68e74a0952dd8606641b6e0538a
1 #! /usr/bin/env python
3 # Copyright (C) 2007 Marco Ferragina <marco.ferragina@gmail.com>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 from cGmail.manager.accountswindow import AccountsWindow
20 from cGmail.manager.dbusinterface import get_dbus_interface
22 iface = get_dbus_interface()
23 if iface is not None:
24 print "There is already a running instance"
25 else:
26 a = AccountsWindow()
27 a.show()