summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-29 11:41:31 +0800
committerruki <[email protected]>2017-06-29 11:41:31 +0800
commit1c898dee704ec1c8d76da288471f95bbd68c36b8 (patch)
tree77c832cafe09a50e7907ed472691b20ee3683621
parent51310d69c0494b27889be0895f85927d617913fd (diff)
fix import cache key
-rw-r--r--xmake/core/sandbox/modules/import.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/sandbox/modules/import.lua b/xmake/core/sandbox/modules/import.lua
index 09b3cb299..c72013582 100644
--- a/xmake/core/sandbox/modules/import.lua
+++ b/xmake/core/sandbox/modules/import.lua
@@ -133,10 +133,10 @@ function sandbox_import._find(dir, name)
-- the single module?
if os.isfile(key .. ".lua") then
- return key
+ return path.absolute(key)
-- modules?
elseif os.isdir(key) then
- return key
+ return path.absolute(key)
end
end