diff options
| author | ruki <[email protected]> | 2016-06-21 21:48:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-22 10:26:10 +0800 |
| commit | 902fbe1ba80062b7f6c73f012827cd3d7ba4f3ae (patch) | |
| tree | c55a96abefaba86b208dd747461f1b650d8cb825 /xmake/core/base/path.lua | |
| parent | 432fd6a40018f4c29e08f1d4cadf1ccc387a0cff (diff) | |
fix path bug
Diffstat (limited to 'xmake/core/base/path.lua')
| -rw-r--r-- | xmake/core/base/path.lua | 10 |
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 |
