summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_python3.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-05-16 09:24:48 +0800
committerGitHub <[email protected]>2025-05-16 09:24:48 +0800
commit7695fd5dfb17b893b21e15f60a9eb687caf21a4a (patch)
tree742482e11801e6127ff61627cff65a276e12b81b /xmake/modules/detect/tools/find_python3.lua
parent9b52d78996d56d79565bed33be7e5a7be98c15f7 (diff)
parent8ccaf071e47d4db7614d0ef69e67be5a979e7919 (diff)
Merge pull request #6448 from RimuruChan/dev
Wrap opt.paths in a table for find tools
Diffstat (limited to 'xmake/modules/detect/tools/find_python3.lua')
-rw-r--r--xmake/modules/detect/tools/find_python3.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_python3.lua b/xmake/modules/detect/tools/find_python3.lua
index 3b606f279..2e2477c11 100644
--- a/xmake/modules/detect/tools/find_python3.lua
+++ b/xmake/modules/detect/tools/find_python3.lua
@@ -40,7 +40,7 @@ function main(opt)
-- init options
opt = opt or {}
if is_host("windows") then
- opt.paths = opt.paths or {}
+ opt.paths = table.wrap(opt.paths)
local keys = winos.registry_keys("HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\3.*\\InstallPath")
for _, key in ipairs(keys) do
local value = try {function () return winos.registry_query(key .. ";ExecutablePath") end}