From 04631c0f69d583cc375ba215f5b58fa40b68dfe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 25 Jun 2024 03:03:24 +0800 Subject: [PATCH] auto --- LunaTranslator/retrieval.py | 2 +- build.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/retrieval.py b/LunaTranslator/retrieval.py index b3123fb5..9246ce35 100644 --- a/LunaTranslator/retrieval.py +++ b/LunaTranslator/retrieval.py @@ -4,7 +4,7 @@ import sys pyversion = platform.python_version() pyversion2 = "".join(pyversion.split(".")[:2]) -x86 = int(sys.argv[1]) if len(sys.argv) > 1 else 0 +x86 = platform.architecture()[0] == "32bit" if x86: downlevel = r"C:\Windows\SysWOW64\downlevel" diff --git a/build.py b/build.py index 68155aed..97513d8a 100644 --- a/build.py +++ b/build.py @@ -288,4 +288,4 @@ if __name__ == "__main__": subprocess.run(f"{py37Path} -m pip install --upgrade pip") subprocess.run(f"{py37Path} -m pip install -r requirements.txt") - subprocess.run(f'{py37Path} retrieval.py {int(arch == "x86")}') + subprocess.run(f'{py37Path} retrieval.py')