summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_python2.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-26 22:41:34 +0800
committerruki <[email protected]>2021-03-26 22:41:34 +0800
commit49953b37d748a0116626a74f87faebf198c2d688 (patch)
tree7c84ee8918eebe798fd422a5342489097cb18c9b /xmake/modules/detect/tools/find_python2.lua
parent17c2672e3aae56bfe765fda6adc9abc861d7342d (diff)
improve to find_python
Diffstat (limited to 'xmake/modules/detect/tools/find_python2.lua')
-rw-r--r--xmake/modules/detect/tools/find_python2.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_python2.lua b/xmake/modules/detect/tools/find_python2.lua
index eea226f06..1e9c7b228 100644
--- a/xmake/modules/detect/tools/find_python2.lua
+++ b/xmake/modules/detect/tools/find_python2.lua
@@ -43,6 +43,7 @@ function main(opt)
-- find program
local program = find_program(opt.program or "python2", opt)
if not program then
+ opt.force = true
program = find_program("python", opt)
opt.version = true
end