summaryrefslogtreecommitdiff
path: root/xmake/core
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-01 23:14:57 +0800
committerruki <[email protected]>2023-02-01 23:14:57 +0800
commit8658eae245dafc3b539c6b4280455773caa0ef8a (patch)
tree85ca743be696cffc4d098dffd9cfb758f5094fc3 /xmake/core
parent87cceb8898b238fa0391ac5ee7085555a408d842 (diff)
stats results
Diffstat (limited to 'xmake/core')
-rw-r--r--xmake/core/sandbox/modules/import/core/sandbox/module.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/sandbox/modules/import/core/sandbox/module.lua b/xmake/core/sandbox/modules/import/core/sandbox/module.lua
index ab859ab95..1c2dc6fbc 100644
--- a/xmake/core/sandbox/modules/import/core/sandbox/module.lua
+++ b/xmake/core/sandbox/modules/import/core/sandbox/module.lua
@@ -114,10 +114,10 @@ function core_sandbox_module._find(dir, name)
-- the single module?
if os.isfile(key .. ".lua") then
- return path.absolute(key), false
+ return path.normalize(path.absolute(key)), false
-- modules?
elseif os.isdir(key) then
- return path.absolute(key), true
+ return path.normalize(path.absolute(key)), true
end
end