lua-users home
lua-l archive

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


You can also set the global variable LUA_PATH or the environment
variable LUA_PATH...
http://www.lua.org/pil/8.1.html

> -----Original Message-----
> From: lua-bounces@bazar2.conectiva.com.br 
> [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of 
> Michael Bauroth
> Sent: dinsdag 21 april 2009 16:04
> To: Lua list
> Subject: "require" with customizable dynamically path?
> 
> Hi,
> 
> I implement something like a dynamical plugin system. The 
> plugins are located on a different path than the default LUA 
> environment. Each plugin can have a different path described 
> in a separate xml file.
> 
> Is it possible to handle such behaviour with the normal "require" 
> function from Lua? (we build the Lua dll ourself)
> 
> Best Regards
> Micha
> 
>