lua-users home
lua-l archive

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



* On 2008-06-02 Matt Campbell <mattcampbell@pobox.com> wrote  :

> Hello all:
>
> For the past few versions, Python has been able to import modules  
> directly from ZIP archives.  This may be done to take advantage of ZIP  
> compression or to ease distribution and installation by reducing the  
> number of files to install.  So has anyone implemented a feature like  
> this for Lua?  I know the Lua package system enables implementation of  
> features like this outside the Lua core.  If no one else has done it,  
> then I will, but I thought I should check first.

I implemented something like this some time ago, quite trivially. Just
create a loader for your archive format (I used .tar.gz) and add it to the
package.loaders table.

-- 
:wq
^X^Cy^K^X^C^C^C^C