lua-users home
lua-l archive

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

2011/1/11 Michal Kolodziejczyk <>:
> But you would need to add:
> package.path=package.path..'~/lua/?.lua'
> (expanding ~ manually I guess)

Or directly in a launcher script (so _foo.lua would not be an issue)


> You can already have some software installed this way, luadoc for
> example - look for /usr/share/lua/5.1/*/*.init

Either way, you need some kind of installation logic. It feels better
that a script is self-contained and can be installed locally without
needing to be a superuser.

There are also tricks which use debug.getinfo to find out where the
file is in the filesystem.

steve d.