root/tags/jjigw-0.1/jjigw.py

Revision 81, 1.3 kB (checked in by jajcus, 5 years ago)

- installation (make install)

Line 
1 #!/usr/bin/python -u
2 #
3 #  Jajcus' Jabber to IRC Gateway
4 #  Copyright (C) 2004  Jacek Konieczny <jajcus@bnet.pl>
5 #
6 #  This program is free software; you can redistribute it and/or modify
7 #  it under the terms of the GNU General Public License as published by
8 #  the Free Software Foundation; either version 2 of the License, or
9 #  (at your option) any later version.
10 #
11 #  This program is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #  GNU General Public License for more details.
15 #
16 #  You should have received a copy of the GNU General Public License along
17 #  with this program; if not, write to the Free Software Foundation, Inc.,
18 #  59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20
21 from jjigw.common import JJIGWFatalError
22 from jjigw.config import Config
23 from jjigw.component import Component
24 import sys
25 import os.path
26
27 config_dir,data_dir=".","."
28
29 try:
30     try:
31         config=Config(config_dir,data_dir)
32     except:
33         print >>sys.stderr,"Couldn't load config file:",str(sys.exc_value)
34         sys.exit(1)
35
36     print "creating component..."
37     c=Component(config)
38
39     print "starting..."
40     c.run(1)
41 except JJIGWFatalError,e:
42     print e
43     print "Aborting."
44     sys.exit(1)
45
46 # vi: sts=4 et sw=4
47
Note: See TracBrowser for help on using the browser.