summaryrefslogtreecommitdiff
path: root/xmake/scripts/base
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/base')
-rw-r--r--xmake/scripts/base/template.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/scripts/base/template.lua b/xmake/scripts/base/template.lua
index 520321489..c02b135c3 100644
--- a/xmake/scripts/base/template.lua
+++ b/xmake/scripts/base/template.lua
@@ -60,7 +60,10 @@ function template.loadall(language)
local script = assert(loadfile(t))
if script then
local module = script()
- if module then table.insert(modules, module) end
+ if module then
+ module._DIRECTORY = path.directory(t)
+ table.insert(modules, module)
+ end
end
end
end