We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de0819 commit b9bfd6eCopy full SHA for b9bfd6e
scm.lua
@@ -747,10 +747,13 @@ end
747
---@param name string
748
---@param localPath string
749
function scm:checkRequirements(name, localPath)
750
- scm:log("Checking requirements of " .. name .. "...")
+ scm:log("Checking requirements of " .. (localPath or name) .. "...")
751
local file
752
if localPath then
753
file = fs.open(localPath, "r")
754
+ if not file then
755
+ file = fs.open('./'..localPath .. ".lua", "r")
756
+ end
757
elseif fs.exists("./" .. self.config["libraryDirectory"] .. name .. self.config["librarySuffix"] .. "/" .. name .. ".lua") then
758
file = fs.open("./" .. self.config["libraryDirectory"] .. name .. self.config["librarySuffix"] .. "/" .. name .. ".lua", "r")
759
else
0 commit comments