Update SystemRuntime.py

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-04-29 09:27:53 +08:00
parent a906a69add
commit b2d411347b
+3
View File
@@ -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,