lua-users home
lua-l archive

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


Thank's for all responses! I've noticed the availability of package right now and manipulating package.path does the trick. Are there possibly available problems I don't see at the moment?

Regards
Micha


Rob Kendrick schrieb:
On Tue, 21 Apr 2009 16:03:54 +0200
Michael Bauroth <Michael.Bauroth@falcom.de> wrote:

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)

Sure, but I'm not so sure it's appropriate; surely your application's
plugins would want to be loaded in enclosed environments to stop a bug
in one plugin seriously breaking everything else?

If you really want to; you can just alter/amend the path patterns in
package.path
B.