diff options
Diffstat (limited to 'xmake/scripts/action/_lua.lua')
| -rw-r--r-- | xmake/scripts/action/_lua.lua | 5 |
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 |
