lua-users home
lua-l archive

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


Yes, your trick to compute the prefix

> lua -e 'print(string.match(package.path,".*;(.*)/share.*"))'

is much better than mine.

I still hope that future versions of Lua will supply this information
in a location called package.prefix, rather than making us rely on the
fact that package.path has a particular structure.