summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/bootstrap.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/make/bootstrap.lua b/make/bootstrap.lua
index b29fa03e..34e8a363 100644
--- a/make/bootstrap.lua
+++ b/make/bootstrap.lua
@@ -1,5 +1,6 @@
local args = {}
-local main = 'main.lua'
+local sep = package.config:sub(1,1)
+local main = '.' .. sep .. 'main.lua'
local i = 1
while arg[i] do
@@ -17,11 +18,11 @@ while arg[i] do
end
local root; do
- local sep = package.config:sub(1,1)
- if sep == '\\' then
- sep = '/\\'
+ local sepp = sep
+ if sepp == '\\' then
+ sepp = '/\\'
end
- local pattern = "["..sep.."][^"..sep.."]+"
+ local pattern = "["..sepp.."][^"..sepp.."]+"
root = package.cpath:match("([^;]+)"..pattern..pattern..pattern.."$")
end