summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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