From cb672b0118f80f5b44acf1544077959f4a4c2bee Mon Sep 17 00:00:00 2001 From: zhucong Date: Fri, 26 Apr 2024 14:34:33 +0800 Subject: [PATCH] fix clean issue when install failed --- lib/util.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util.lua b/lib/util.lua index 56a1961..aafd241 100644 --- a/lib/util.lua +++ b/lib/util.lua @@ -97,6 +97,7 @@ function windowsCompile(ctx) local ensurepipPath = qInstallPath .. "\\Lib\\ensurepip\\__init__.py" local file = io.open(ensurepipPath, "r") if file then + io.close(file) local command = qInstallPath .. '\\python -E -s -m ensurepip -U --default-pip > NUL' local exitCode = os.execute(command) if exitCode ~= 0 then