diff options
Diffstat (limited to 'make')
-rw-r--r-- | make/bootstrap.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/make/bootstrap.lua b/make/bootstrap.lua index 2bbd64f0..77f1a4d0 100644 --- a/make/bootstrap.lua +++ b/make/bootstrap.lua @@ -24,8 +24,11 @@ end local root; do
local sep = package.config:sub(1,1)
+ if sep == '\\' then
+ sep = '/\\'
+ end
local pattern = "["..sep.."][^"..sep.."]+"
- root = package.cpath:match("(.+)"..pattern..pattern..pattern.."$")
+ root = package.cpath:match("([^;]+)"..pattern..pattern..pattern.."$")
end
local fs = require "bee.filesystem"
|