This commit is contained in:
Nikos Kouremenos 2005-05-30 12:53:48 +00:00
parent f9f341f104
commit 7baf47b70e
1 changed files with 8 additions and 3 deletions

View File

@ -21,16 +21,21 @@ exec python -OOt "$0" ${1+"$@"}
## GNU General Public License for more details.
##
import sys
import pygtk
pygtk.require('2.0')
import gtk
try:
import gtk
except RuntimeError, msg:
if str(msg) == 'could not open display':
print 'Gajim needs Xserver to run. Exiting...'
sys.exit(0)
import gtk.glade
import pango
import gobject
import os
import sre
import signal
import sys
import getopt
from common import i18n
@ -57,7 +62,7 @@ except getopt.error, msg:
sys.exit(2)
for o, a in opts:
if o in ('-h', '--help'):
print 'gajim [--help] [--profile name]'
print 'gajim [--help] [--verbose] [--profile name]'
sys.exit(0)
elif o in ('-v', '--verbose'):
gajim.verbose = True