summaryrefslogtreecommitdiff
path: root/xmake/core/base/path.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-06-21 21:48:40 +0800
committerruki <[email protected]>2016-06-22 10:26:10 +0800
commit902fbe1ba80062b7f6c73f012827cd3d7ba4f3ae (patch)
treec55a96abefaba86b208dd747461f1b650d8cb825 /xmake/core/base/path.lua
parent432fd6a40018f4c29e08f1d4cadf1ccc387a0cff (diff)
fix path bug
Diffstat (limited to 'xmake/core/base/path.lua')
-rw-r--r--xmake/core/base/path.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua
index 0a9d6cf41..b1136702d 100644
--- a/xmake/core/base/path.lua
+++ b/xmake/core/base/path.lua
@@ -96,6 +96,16 @@ function path.split(p)
return p:split("/\\")
end
+-- get the path seperator
+function path.seperator()
+
+ -- windows?
+ if xmake._HOST == "windows" then
+ return '\\'
+ else
+ return '/'
+ end
+end
-- return module: path
return path