[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Finding and loading Lua files
- From: Tomas <tomas@...>
- Date: Tue, 20 Apr 2004 09:28:47 -0300 (BRT)
I'm solving this problem with a LUA_PATH like:
LUA_PATH=/usr/local/lua/?;/usr/local/lua/?.lua;/usr/local/lua/?/?.lua;./?;./?.lua
And I've installed all packages/modules/libraries in
/usr/local/lua/<package name>/
The main file should have the name of the package. For example:
/usr/local/lua/lxp/lxp.lua
/lom.lua
/soap/soap.lua
/http.lua
/xmlrpc/xmlrpc.lua
/http.lua
Both libraries have a main file and another one that
depends on the main file. Inside xmlrpc/http.lua
require"xmlrpc"
Inside xmlrpc/xmlrpc.lua
require"lxp"
require"lxp/lom"
Does it work for you?
Tomas