Files
gramps/src/gramps.py
Don Allingham 2b1606a662 Error checking for PIL thumbnail
svn: r792
2002-02-23 00:59:19 +00:00

47 lines
808 B
Python
Executable File

#! /usr/bin/python -O
import traceback
import intl
import os
import gtk
import gnome.ui
import gnome.config
import locale
if os.environ.has_key("GRAMPSI18N"):
loc = os.environ["GRAMPSI18N"]
else:
loc = "locale"
intl.textdomain("gramps")
intl.bindtextdomain("gramps",loc)
locale.setlocale(locale.LC_NUMERIC,"C")
import gramps_main
import sys
import locale
if len(sys.argv) > 1:
arg = sys.argv[1]
else:
arg = None
try:
import StartupDialog
if StartupDialog.need_to_run():
StartupDialog.StartupDialog(gramps_main.Gramps,arg)
else:
gramps_main.Gramps(arg)
except:
traceback.print_exc()
fname = os.path.expanduser("~/gramps.err")
errfile = open(fname,"w")
traceback.print_exc(file=errfile)
errfile.close()
gtk.mainloop()