From 8a0113ea79f92c77449d4b1bb0fbd2045723d2df Mon Sep 17 00:00:00 2001 From: Johnny Zhang Date: Mon, 30 Mar 2020 11:45:53 +0800 Subject: [PATCH] Added Python version check --- eaf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eaf.py b/eaf.py index c693d0b..1417745 100755 --- a/eaf.py +++ b/eaf.py @@ -37,7 +37,6 @@ import json import os import subprocess - EAF_DBUS_NAME = "com.lazycat.eaf" EAF_OBJECT_NAME = "/com/lazycat/eaf" @@ -82,7 +81,7 @@ class EAF(dbus.service.Object): def webengine_include_private_codec(self): path = os.path.join(QLibraryInfo.location(QLibraryInfo.LibraryExecutablesPath), "QtWebEngineProcess") - if version_info > (3,7): + if version_info >= (3,7): result = subprocess.run("ldd {} | grep libavformat".format(path), check=False, shell=True, stdout=subprocess.PIPE, text=True) else: result = subprocess.run("ldd {} | grep libavformat".format(path), check=False, shell=True, stdout=subprocess.PIPE)