summaryrefslogtreecommitdiff
path: root/xmake/core/project/template.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-17 20:35:09 +0800
committerruki <[email protected]>2019-02-18 10:09:01 +0800
commit8e9016cc9c2ff0ad97427d22c7ea6d7349e12e57 (patch)
tree27926b6932ccac0a1d383278c4d6bfdf3f960f76 /xmake/core/project/template.lua
parente9639a1d7ef67477ba12b740e38a5d5b4f774865 (diff)
fix interpreter for scope info
Diffstat (limited to 'xmake/core/project/template.lua')
-rw-r--r--xmake/core/project/template.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/template.lua b/xmake/core/project/template.lua
index 2834091e3..9295f2335 100644
--- a/xmake/core/project/template.lua
+++ b/xmake/core/project/template.lua
@@ -158,10 +158,10 @@ function template.templates(language)
end
-- save template directory
- results._DIRECTORY = path.directory(templatefile)
+ results:set("_DIRECTORY", path.directory(templatefile))
-- insert to templates
- table.insert(templates, results)
+ table.insert(templates, results:info())
end
end