修改位置

This commit is contained in:
gfdgd xi 2023-07-11 21:07:59 +08:00
parent e175a80e57
commit 74e82aca00

View File

@ -3070,8 +3070,6 @@ if os.path.exists(f"{programPath}/WineLib/usr"):
libPathList = [] libPathList = []
for libPath in [f"{programPath}/WineLib/usr/lib", f"{programPath}/WineLib/usr/lib64"]: for libPath in [f"{programPath}/WineLib/usr/lib", f"{programPath}/WineLib/usr/lib64"]:
for i in os.listdir(libPath): 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}"): if not os.path.isdir(f"{libPath}/{i}"):
try: try:
if not os.path.getsize(f"{libPath}/{i}"): if not os.path.getsize(f"{libPath}/{i}"):
@ -3080,6 +3078,8 @@ if os.path.exists(f"{programPath}/WineLib/usr"):
continue continue
libPathList.append(f"{libPath}/{i}") libPathList.append(f"{libPath}/{i}")
else: else:
if not os.path.exists(f"{libPath}/{i}/libc.so.6"):
continue
libPathList.append(f"{libPath}/{i}/") libPathList.append(f"{libPath}/{i}/")
print(libPathList) print(libPathList)
if os.path.exists(f"{programPath}/InstallRuntime"): if os.path.exists(f"{programPath}/InstallRuntime"):