* src/DisplayTrace.py (__init__): Mark debian distros.

svn: r4177
This commit is contained in:
Alex Roitman 2005-03-14 03:50:38 +00:00
parent f2f3d1530c
commit 4b817d717e
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,8 @@
* src/EventEdit.py (get_place): Typo.
* src/DisplayTrace.py (__init__): Mark debian distros.
2005-03-12 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/GenericFilter.py (Rule,GenericFilter): New methods prepare() and
reset(), that are called before/after a filter is applied, to properly

View File

@ -80,6 +80,8 @@ class DisplayTrace:
msg.write("GRAMPS : %s\n" % const.version)
if os.environ.has_key('LANG'):
msg.write("LANG : %s\n" % os.environ['LANG'])
if os.environ.has_key('LANGUAGE'):
msg.write("LANGUAGE : %s\n" % os.environ['LANGUAGE'])
msg.write("Python : %s.%s.%s %s\n" % (ver[0],ver[1],ver[2],ver[3]))
msg.write("GTK : %s.%s.%s\n" % gtk.gtk_version)
msg.write('PyGTK : %d.%d.%d\n' % gtk.pygtk_version)
@ -88,6 +90,8 @@ class DisplayTrace:
try:
f = open(n)
text = f.readline()
if n.find('debian') != -1:
text = "Debian %s" % text
msg.write("OS : %s\n" % text)
f.close()
break