summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-16 10:31:40 +0800
committerruki <[email protected]>2017-05-16 10:32:16 +0800
commit76845e083b940445042896a87ebb482edcac8a36 (patch)
tree9b966443c8ca343cba52f58a61eb14c3d12f488b /xmake/core/base/interpreter.lua
parent79634bd7f65737d619f87f6b38710195429843d0 (diff)
improve import interfaces and add user externsion modules
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 1f31756a1..fdb8fbaa0 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -1084,7 +1084,7 @@ function interpreter:api_register_on_script(scope_kind, ...)
script = function (...)
-- import it
- return import(modulename).main(...)
+ return import(modulename)(...)
end
end
@@ -1119,7 +1119,7 @@ function interpreter:api_register_before_script(scope_kind, ...)
script = function (...)
-- import it
- return import(modulename).main(...)
+ return import(modulename)(...)
end
end
@@ -1154,7 +1154,7 @@ function interpreter:api_register_after_script(scope_kind, ...)
script = function (...)
-- import it
- return import(modulename).main(...)
+ return import(modulename)(...)
end
end