diff options
-rw-r--r-- | make/bootstrap.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/make/bootstrap.lua b/make/bootstrap.lua index d379f599..a43ede88 100644 --- a/make/bootstrap.lua +++ b/make/bootstrap.lua @@ -29,8 +29,6 @@ if main then for j = #arg - main + 1, #arg do
arg[j] = nil
end
-else
- arg[0] = 'main.lua'
end
local root; do
@@ -48,6 +46,7 @@ local root; do end
local pattern = "["..sep.."][^"..sep.."]+"
root = package.cpath:match("([^;]+)"..pattern..pattern..pattern.."$")
+ arg[0] = root .. package.config:sub(1,1) .. 'main.lua'
end
end
|