Skip to content

Commit

Permalink
Gramps version output now reports OS rather than Platform
Browse files Browse the repository at this point in the history
Fixes #12285

Currently `gramps -v` reports the platform insted of O.S. which is confusing to users. Now Gramps will report the operating system name. Reference: https://docs.python.org/3/library/platform.html#platform.system

Current:
Gramps Settings:
----------------
gramps    : AIO64-5.2.2-r1-f905d14
o.s.      : win32

With this change:
Gramps Settings:
----------------
gramps    : AIO64-5.2.2-r1-f905d14
o.s.      : Windows
  • Loading branch information
hgohel committed Nov 30, 2024
1 parent f3724f0 commit f2d1785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gramps/grampsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
# -------------------------------------------------------------------------
import sys
import os
import platform
import signal

import logging

LOG = logging.getLogger(".")
Expand Down Expand Up @@ -534,7 +534,7 @@ def verstr(nums):
print("Gramps Settings:")
print("----------------")
print(" gramps : %s" % gramps_str)
print(" o.s. : %s" % sys.platform)
print(" o.s. : %s" % platform.system())
if kernel:
print(" kernel : %s" % kernel)
print("")
Expand Down

0 comments on commit f2d1785

Please sign in to comment.