summaryrefslogtreecommitdiff
path: root/xmake/core/project/template.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-17 22:29:58 +0800
committerruki <[email protected]>2019-09-17 08:59:51 +0800
commit916078fdb2904340ef2003a46057d9232194511a (patch)
treebb4c4ecc3987398915d37dea92ca43911d5d59e2 /xmake/core/project/template.lua
parent860f2ddcfee2546ec9feeb8749fc5e5acd2a5b43 (diff)
improve to find xmake.lua for task/template
Diffstat (limited to 'xmake/core/project/template.lua')
-rw-r--r--xmake/core/project/template.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/template.lua b/xmake/core/project/template.lua
index 4dae83130..98593be24 100644
--- a/xmake/core/project/template.lua
+++ b/xmake/core/project/template.lua
@@ -135,7 +135,7 @@ function template.templates(language)
-- load all templates
local templates = {}
- local templatefiles = os.files(path.join(os.programdir(), "templates", language, "**", "template.lua"))
+ local templatefiles = os.files(path.join(os.programdir(), "templates", language, "*", "template.lua"))
if templatefiles then
-- load template