summaryrefslogtreecommitdiff
path: root/xmake/scripts/action/_lua.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-04 12:01:02 +0800
committerruki <[email protected]>2015-06-04 12:01:02 +0800
commit9f1d3468c22adabab1ad06cdb0014c4f6ef2caa6 (patch)
tree38aa06eba8a633d91646e6cefbd7f942350bb0ce /xmake/scripts/action/_lua.lua
parent5bb9c509ed7d76918eb54d8500d6f981747d7e0e (diff)
find the given tool from name
Diffstat (limited to 'xmake/scripts/action/_lua.lua')
-rw-r--r--xmake/scripts/action/_lua.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/scripts/action/_lua.lua b/xmake/scripts/action/_lua.lua
index 1018b1722..2f7597b03 100644
--- a/xmake/scripts/action/_lua.lua
+++ b/xmake/scripts/action/_lua.lua
@@ -29,6 +29,7 @@ local path = require("base/path")
local utils = require("base/utils")
local config = require("base/config")
local string = require("base/string")
+local tools = require("tools/tools")
-- done the given config
function _lua.done()
@@ -75,9 +76,9 @@ function _lua.done()
file = path.absolute(file)
end
- -- attempt to load script from the xmake tool directory
+ -- attempt to load script from the tools directory
if not os.isfile(file) then
- file = xmake._SCRIPTS_DIR .. "/tools/" .. options.script .. ".lua"
+ file = tools.find(options.script, xmake._SCRIPTS_DIR .. "/tools")
end
-- load and run the script file