1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-27 09:59:29 +00:00

Fixed package searcher overriding the Lua one

This commit is contained in:
Étienne Fildadut 2017-09-02 20:04:47 +02:00
parent 91f72e6d17
commit 2d297db687
5 changed files with 108 additions and 100 deletions

View file

@ -230,7 +230,7 @@ end
--- Candran package searcher function. Use the existing package.path.
function candran.searcher(modpath)
local filepath = util.search(modpath)
local filepath = util.search(modpath, {"can"})
if not filepath then
return "\n\tno candran file in package.path"
end
@ -244,6 +244,7 @@ function candran.setup()
else
table.insert(package.searchers, 2, candran.searcher)
end
return candran
end
return candran