src/GampsLogger/_ErrorReportAssistant.py: fix error message in Windows

svn: r6970
This commit is contained in:
Brian Matherly 2006-06-28 02:52:38 +00:00
parent 60d21403a7
commit 13e3d9e505
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2006-06-27 Brian Matherly <brian@gramps-project.org>
* src/GampsLogger/_ErrorReportAssistant.py: fix error message in Windows
2006-06-26 Don Allingham <don@gramps-project.org>
* src/ReportBase/_ReportDialog.py (report): catch IOError
* src/Filters/Rules/Person/_HasDeath.py: use references instead of

View File

@ -81,6 +81,13 @@ class ErrorReportAssistant:
self._final_report_text_buffer.get_end_iter()))
def _get_sys_information(self):
if hasattr(os, "uname"):
operatingsystem = os.uname()[0]
distribution = os.uname()[2]
else:
operatingsystem = sys.platform
distribution = " "
return "Python version: %s \n"\
"Gramps version: %s \n"\
"LANG: %s\n"\
@ -89,8 +96,8 @@ class ErrorReportAssistant:
% (str(sys.version).replace('\n',''),
str(const.version),
os.environ.get('LANG',''),
os.uname()[0],
os.uname()[2])
operatingsystem,
distribution)
def _reset_error_details_text_buffer(self,obj=None):
self._error_details_text_buffer.set_text(