On Wed, Jul 20, 2011 at 4:17 PM, Hisham <[email protected]> wrote:
> A curiosity: should you be able to do this in Lua 5.2 using the new
> package.searchpath function? I would suppose so, by finding the actual
> path of a module and then locating stylesheets and templates relative
> to it.

Finding a module is easy enough (Penlight for instance implements
package.searchpath for Lua 5.1) but one can't assume that a project's
data is sitting in the same directory. That would be most foreign to
the Unix way of things, of course ;)  As I understand, LR deploys
modules to their proper places, and leaves metadata in the rock dir.
So either I look relative to the rock dir, or ensure that the metadata
is installed in some known and appropriate position.

steve d.

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to