Skip to content
Snippets Groups Projects
Commit 924cae81 authored by 最萌小汐's avatar 最萌小汐
Browse files

#284 Unbind the binary file from the script file

parent 9c036011
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,9 @@ cpath: %s
))
end
local currentPath = debug.getinfo(1, 'S').source:sub(2)
local fs = require 'bee.filesystem'
local rootPath = fs.path(exePath):parent_path():parent_path():remove_filename():string()
local rootPath = fs.path(currentPath):remove_filename():string()
if dll == '.dll' then
rootPath = rootPath:gsub('/', '\\')
package.path = rootPath .. script .. '\\?.lua'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment