2 # -*- coding: utf-8 -*-
5 This file is part of Multilist.
7 Multilist is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 Multilist is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Multilist. If not, see <http://www.gnu.org/licenses/>.
20 Copyright (C) 2008 Christoph Würstle
31 gettext.install('multilist', unicode=1)
33 if __name__ == "__main__":
38 tmpdir=tempfile.gettempdir()
40 os.mkdir(os.path.join(tmpdir, "multilist_lock"))
42 ## Failed: another instance is running
44 mbox=gtk.MessageDialog(None,gtk.DIALOG_MODAL,gtk.MESSAGE_ERROR,gtk.BUTTONS_YES_NO,_("Multilist is already running. Start anyway? (Could result in db problems!)"))
48 if response==gtk.RESPONSE_NO:
53 from multilistclasses import libmultilist
54 #print dir(eggtimerclasses)
55 app = libmultilist.multilistclass()
59 ## Remove the PID file
62 os.rmdir(os.path.join(tmpdir, "multilist_lock"))