summaryrefslogtreecommitdiff
path: root/xmake/core/base/path.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-27 00:37:26 +0800
committerruki <[email protected]>2019-04-26 21:44:37 +0800
commitaf03058084d45e4d1c437a2f43205cf69c2b93ec (patch)
treebc73231a9d4b04169228a2630396bc1d0ca7ad73 /xmake/core/base/path.lua
parent600fb4fab529ae55a44ccdfd6045046309db8f4f (diff)
rename path.sep
Diffstat (limited to 'xmake/core/base/path.lua')
-rw-r--r--xmake/core/base/path.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua
index 2748b446b..489f6b702 100644
--- a/xmake/core/base/path.lua
+++ b/xmake/core/base/path.lua
@@ -93,10 +93,15 @@ function path.split(p)
end
-- get the path seperator
-function path.seperator()
+function path.sep()
return xmake._HOST == "windows" and '\\' or '/'
end
+-- get the path seperator of environment variable
+function path.envsep()
+ return xmake._HOST == "windows" and ';' or ':'
+end
+
-- the last character is the path seperator?
function path.islastsep(p)
local sep = p:sub(#p, #p)