diff options
| author | ruki <[email protected]> | 2021-04-12 23:58:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-12 23:58:17 +0800 |
| commit | 94c655f43fe2141e0e6d187602ae88b8c3fa6e10 (patch) | |
| tree | 21c124c1b0d303c061432d9d2ddcf63615c7db9a /xmake/modules/detect/tools/find_python3.lua | |
| parent | 1e4450840d5700cdb05f2ed233d0c9259738d14b (diff) | |
improve find_python
Diffstat (limited to 'xmake/modules/detect/tools/find_python3.lua')
| -rw-r--r-- | xmake/modules/detect/tools/find_python3.lua | 2 |
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 0e056dd27..3b606f279 100644 --- a/xmake/modules/detect/tools/find_python3.lua +++ b/xmake/modules/detect/tools/find_python3.lua @@ -43,7 +43,7 @@ function main(opt) opt.paths = opt.paths or {} local keys = winos.registry_keys("HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\3.*\\InstallPath") for _, key in ipairs(keys) do - local value = winos.registry_query(key .. ";ExecutablePath") + local value = try {function () return winos.registry_query(key .. ";ExecutablePath") end} if value and os.isfile(value) then table.insert(opt.paths, value) end |
