From b2d411347b5ddb4aace5d0a369face2edee2cf1c Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Mon, 29 Apr 2024 09:27:53 +0800 Subject: [PATCH] Update SystemRuntime.py Signed-off-by: Loren Eteval --- Furious/Utility/SystemRuntime.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Furious/Utility/SystemRuntime.py b/Furious/Utility/SystemRuntime.py index 50ba213..2640d63 100644 --- a/Furious/Utility/SystemRuntime.py +++ b/Furious/Utility/SystemRuntime.py @@ -45,6 +45,9 @@ def getPythonVersion(): @functools.lru_cache(None) def getUbuntuRelease() -> str: try: + if PLATFORM != 'Linux': + return '' + result = runExternalCommand( ['cat', '/etc/lsb-release'], stdout=subprocess.PIPE,