diff options
| author | ruki <[email protected]> | 2015-06-19 18:01:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-19 18:01:40 +0800 |
| commit | 2ee74d41c449192a66a2bc5cc1ca64fbc952c626 (patch) | |
| tree | 1ca2f34f24cc47854b6f4a5610036437352e583e /xmake/scripts/base | |
| parent | 1d041891edec9d99a1922fd7f4a4770b60412cfd (diff) | |
add template interfaces for c console
Diffstat (limited to 'xmake/scripts/base')
| -rw-r--r-- | xmake/scripts/base/template.lua | 5 |
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 |
