From 81de2ecbbad98276551e7a51e1ee745ee70bc986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuncay=20=C3=87OLAK?= Date: Thu, 9 Sep 2021 15:43:39 +0300 Subject: [PATCH] change os version as distro.lsb_release in system --- src/base/system/system.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/base/system/system.py b/src/base/system/system.py index 1518a02..c2d725b 100644 --- a/src/base/system/system.py +++ b/src/base/system/system.py @@ -352,7 +352,9 @@ class System: @staticmethod def version(): - return platform.version() + # return platform.version() + version = distro.lsb_release_info()['description'] +"-"+ distro.lsb_release_info()["release"] + return version @staticmethod def kernel_release():