lua-users home
lua-l archive

Re: Finding and loading Lua files

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


> This works, but makes at least three assumptions:
>
> - All of your Lua modules are installed in the same common folder
> - You know in advance the name of that common folder, and have it set up
> somewhere (e.g. in an environment variable LUA_PATH)
	I don't think these two assumptions above are problematic.
The libraries/applications don't need to know what is that folder.
> - All module folders are named as the main modules inside them
	This is not mandatory. But it simplifies the installation and
avoids name collisions.
	Tomas

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