On Wed, Jul 20, 2011 at 6:27 PM, Hisham <[email protected]> wrote: > afraid the problem would be to extract the prefix from a module path > reliably on Windows!
O yes! You can take very little for granted on a Windows system! Although there the strategy is to try get installed in one directory and get the system to add you to the path; Windows paths end up looking really nasty. > Yes, this works, but I don't know if everyone would be happy with a > LuaRocks "dependency". Anyway, you can't always please everyone... Well, currently ldoc is one of those Lua programs that sit in a directory and a user creates a shell script that refers to the main Lua file, which then readjusts the Lua module path accordingly. (The 'require_here' pattern from Penlight). That works fine. Fortunately, we have if statements: if I am a program that was installed with LR, then I can ask LR where it put my stuff; if not, I can fall back on some other heuristics. 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
