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:
parent
91f72e6d17
commit
2d297db687
5 changed files with 108 additions and 100 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue