diff --git a/main.lua b/main.lua index 1b0c7a5a3..173b5af10 100644 --- a/main.lua +++ b/main.lua @@ -1,6 +1,7 @@ local currentPath = debug.getinfo(1, 'S').source:sub(2) local rootPath = currentPath:gsub('[/\\]*[^/\\]-$', '') -loadfile((rootPath == '' and '.' or rootPath) .. '/platform.lua')('script') +rootPath = (rootPath == '' and '.' or rootPath) +loadfile(rootPath .. '/platform.lua')('script') local fs = require 'bee.filesystem' local function expanduser(path)