summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-08 09:12:23 +0800
committerruki <[email protected]>2022-05-08 09:12:23 +0800
commit9ffc16b9f9dbe8e01a6881435469630558c319bf (patch)
treee37e81ab2f2b1682d5720b924eb2e38caa0e9f47
parent5683c390788dfbaa8b4259d9984689557f6aec90 (diff)
update path
-rw-r--r--xmake/core/base/path.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua
index 2c54b03a0..59bc4d9aa 100644
--- a/xmake/core/base/path.lua
+++ b/xmake/core/base/path.lua
@@ -74,12 +74,12 @@ function _instance:join(...)
return path.new(path.join(table.unpack(items)))
end
-function _instance:split(p)
- return path.split(self:str(), p)
+function _instance:split()
+ return path.split(self:str())
end
-function _instance:splitenv(p)
- return path.splitenv(self:str(), p)
+function _instance:splitenv()
+ return path.splitenv(self:str())
end
-- concat two paths