From 58cd9f0051188cf31463b2b8f11cfbada82cfc8c Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 10 Jun 2023 15:48:52 +0800 Subject: [PATCH] try use sys.argv[0] instead --- nuitka_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuitka_build.py b/nuitka_build.py index 2d7e3f3..12d78d5 100644 --- a/nuitka_build.py +++ b/nuitka_build.py @@ -19,7 +19,7 @@ if __name__ == '__main__': compiler = nuitka.CompilerHelper() # 修改 python 执行文件 为 运行时的 python - compiler.python_cmd = sys.executable + compiler.python_cmd = sys.argv[0] # 检测 --github 参数 is_github = False