diff options
| author | ruki <[email protected]> | 2019-04-27 00:37:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-04-26 21:44:37 +0800 |
| commit | af03058084d45e4d1c437a2f43205cf69c2b93ec (patch) | |
| tree | bc73231a9d4b04169228a2630396bc1d0ca7ad73 /xmake/core/base/path.lua | |
| parent | 600fb4fab529ae55a44ccdfd6045046309db8f4f (diff) | |
rename path.sep
Diffstat (limited to 'xmake/core/base/path.lua')
| -rw-r--r-- | xmake/core/base/path.lua | 7 |
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) |
