192bef4871
svn: r59
33 lines
566 B
Python
Executable File
33 lines
566 B
Python
Executable File
#! /usr/bin/python -O
|
|
|
|
import traceback
|
|
import intl
|
|
import os
|
|
|
|
intl.textdomain("gramps")
|
|
_ = intl.gettext
|
|
|
|
if os.environ.has_key("GRAMPSI18N"):
|
|
locale = os.environ["GRAMPSI18N"]
|
|
else:
|
|
locale = "locale"
|
|
|
|
intl.bindtextdomain("gramps",locale)
|
|
|
|
import gramps_main
|
|
import sys
|
|
|
|
try:
|
|
if len(sys.argv) > 1:
|
|
gramps_main.main(sys.argv[1])
|
|
else:
|
|
gramps_main.main(None)
|
|
except:
|
|
|
|
traceback.print_exc()
|
|
fname = os.path.expanduser("~/gramps.err")
|
|
errfile = open(fname,"w")
|
|
traceback.print_exc(file=errfile)
|
|
errfile.close()
|
|
|