diff --git a/make/bootstrap.lua b/make/bootstrap.lua index 36b9ce966..3d2ce465b 100644 --- a/make/bootstrap.lua +++ b/make/bootstrap.lua @@ -48,7 +48,7 @@ local root; do if sep == '\\' then sep = '/\\' end - local pattern = "["..sep.."][^"..sep.."]+" + local pattern = "["..sep.."]+[^"..sep.."]+" root = package.cpath:match("([^;]+)"..pattern..pattern.."$") arg[0] = root .. package.config:sub(1,1) .. 'main.lua' end