From 74e82aca004ea863a1847b118fdbd5ae7b5c956a Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Tue, 11 Jul 2023 21:07:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.py b/mainwindow.py index d76ce14..0fb62b5 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -3070,8 +3070,6 @@ if os.path.exists(f"{programPath}/WineLib/usr"): libPathList = [] for libPath in [f"{programPath}/WineLib/usr/lib", f"{programPath}/WineLib/usr/lib64"]: for i in os.listdir(libPath): - if not os.path.exists(f"{libPath}/{i}/libc.so.6"): - continue if not os.path.isdir(f"{libPath}/{i}"): try: if not os.path.getsize(f"{libPath}/{i}"): @@ -3080,6 +3078,8 @@ if os.path.exists(f"{programPath}/WineLib/usr"): continue libPathList.append(f"{libPath}/{i}") else: + if not os.path.exists(f"{libPath}/{i}/libc.so.6"): + continue libPathList.append(f"{libPath}/{i}/") print(libPathList) if os.path.exists(f"{programPath}/InstallRuntime"):