[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: support for package.searchpath
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Mon, 17 Nov 2008 17:37:03 +0100
2008/11/17 Tim Michals <firstname.lastname@example.org>:
> When would this feature be out? What I'm looking for is a method what would
> allow a search path for loading the shard library or DLL. right now, the
> only way I know is use a static path,
> There was a posting for this at
> for example in a lua script require("module")
> Is there another method? So some simple way to do this?
You can implement a custom module searcher to have whatever lookup
mechanism you want to find shared libraries. I updated the wiki with a
Lua implementation of the default binary loader provided with Lua .
You can start from there and add a more complex search path mechanism.
I think the example is pretty straightforward, but feel free to ask