lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Wed, Jun 10, 2020 at 10:52 PM Soni "They/Them" L. <> wrote:
if you have foo/init.lua you can require it as either "foo" or
"foo.init" and I think lua should detect these and error if you don't
use the shorter one.

it's quite trivial to check this in the searchers themselves.

If it's that trivial, then write your own searcher and replace the stock searchers with it. The code for the existing ones is in loadlib.c.