The template install puzzle

Matt Mackall mpm at selenic.com
Wed May 25 23:54:22 UTC 2005


On Wed, May 25, 2005 at 05:35:52PM -0600, Jake Edge wrote:
> Matt Mackall wrote:
> 
> >It's not quite what's wanted. The templates really ought to be
> >installed next to hgweb.py
> 
> maybe this is violently cheating and Thomas' neck hair will bristle, but 
> i added the following to setup.py and it seemed to do what i wanted it to:
> 
> data_files=[ ('lib/python/mercurial/templates', [ 'templates/map' ]) ]
> 
> it is somewhat annoying that you would have to list each file 
> seperately, but perhaps you could create some a list of the files in the 
> templates directory automatically in setup.py ...

I used glob, which seemed to work. I think I have this all sorted.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list