# HG changeset patch # User Matthew Wild # Date 1281122266 -3600 # Node ID e27ab4492cdd3de909c7419b81dcbbd3a8de95c8 # Parent 0fd43db11abcdf615d76422955bfe5820ef231a2 squish.lua: Only prepend project base path for relative paths specified in the squishy file diff -r 0fd43db11abc -r e27ab4492cdd squish.lua --- a/squish.lua Thu Jul 08 01:14:51 2010 +0100 +++ b/squish.lua Fri Aug 06 20:17:46 2010 +0100 @@ -215,7 +215,10 @@ print_verbose("Packing modules..."); for _, module in ipairs(modules) do - local modulename, path = module.name, base_path..module.path; + local modulename, path = module.name, module.path; + if module.path:sub(1,1) ~= "/" then + path = base_path..module.path; + end print_debug("Packing "..modulename.." ("..path..")..."); local data, err = fetch.filesystem(path); if (not data) and module.url then