lua-users home
lua-l archive

Re: make local oddness and package.prefix

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


Luis,
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.
John

AltStyle によって変換されたページ (->オリジナル) /