* src/DisplayTrace.py (__init__): Mark debian distros.
svn: r4177
This commit is contained in:
parent
6b8d0501f6
commit
72821c9058
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
* src/EventEdit.py (get_place): Typo.
|
* src/EventEdit.py (get_place): Typo.
|
||||||
|
|
||||||
|
* src/DisplayTrace.py (__init__): Mark debian distros.
|
||||||
|
|
||||||
2005-03-12 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
2005-03-12 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/GenericFilter.py (Rule,GenericFilter): New methods prepare() and
|
* src/GenericFilter.py (Rule,GenericFilter): New methods prepare() and
|
||||||
reset(), that are called before/after a filter is applied, to properly
|
reset(), that are called before/after a filter is applied, to properly
|
||||||
|
@ -80,6 +80,8 @@ class DisplayTrace:
|
|||||||
msg.write("GRAMPS : %s\n" % const.version)
|
msg.write("GRAMPS : %s\n" % const.version)
|
||||||
if os.environ.has_key('LANG'):
|
if os.environ.has_key('LANG'):
|
||||||
msg.write("LANG : %s\n" % os.environ['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("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("GTK : %s.%s.%s\n" % gtk.gtk_version)
|
||||||
msg.write('PyGTK : %d.%d.%d\n' % gtk.pygtk_version)
|
msg.write('PyGTK : %d.%d.%d\n' % gtk.pygtk_version)
|
||||||
@ -88,6 +90,8 @@ class DisplayTrace:
|
|||||||
try:
|
try:
|
||||||
f = open(n)
|
f = open(n)
|
||||||
text = f.readline()
|
text = f.readline()
|
||||||
|
if n.find('debian') != -1:
|
||||||
|
text = "Debian %s" % text
|
||||||
msg.write("OS : %s\n" % text)
|
msg.write("OS : %s\n" % text)
|
||||||
f.close()
|
f.close()
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user