Update init.lua

Accidentally changed package.path to nil in certain cases. Oopsie #fixed
This commit is contained in:
Robert Jelic
2022-12-09 07:18:00 +01:00
committed by GitHub
parent 0e3da7eda5
commit 636ed0001f

View File

@@ -1,7 +1,7 @@
local curDir = fs.getDir(table.pack(...)[2]) or ""
local defaultPath = package.path
if not(packed)then
local defaultPath = package.path
local format = "path;/path/?.lua;/path/?/init.lua;"
local main = format:gsub("path", curDir)
@@ -14,4 +14,4 @@ end
local Basalt = require("main")
package.path = defaultPath
return Basalt
return Basalt