From 5cc7ed558ddd548ecf920a65ad181a41cbe32d7c Mon Sep 17 00:00:00 2001 From: xaoyo Date: Sun, 8 Oct 2023 23:06:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96get=5Fwx=5Finfo=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program/get_wx_info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Program/get_wx_info.py b/Program/get_wx_info.py index 96060ad..cdca734 100644 --- a/Program/get_wx_info.py +++ b/Program/get_wx_info.py @@ -35,8 +35,7 @@ def get_key(h_process, address): def get_file_version(file_path): info = win32api.GetFileVersionInfo(file_path, "\\") - ms = info['FileVersionMS'] - ls = info['FileVersionLS'] + ms,ls = info['FileVersionMS'],info['FileVersionLS'] file_version = f"{win32api.HIWORD(ms)}.{win32api.LOWORD(ms)}.{win32api.HIWORD(ls)}.{win32api.LOWORD(ls)}" return file_version