Mercurial > p > roundup > code
comparison setup.py @ 4069:a6fdaaa3a8bd
Move templates/ to share/roundup/templates/
| author | Stefan Seefeld <stefan@seefeld.name> |
|---|---|
| date | Mon, 23 Feb 2009 15:31:29 +0000 |
| parents | e233d7a66343 |
| children | eddb82d0964c |
comparison
equal
deleted
inserted
replaced
| 4068:e233d7a66343 | 4069:a6fdaaa3a8bd |
|---|---|
| 76 'doc/roundup-mailgw.1', 'doc/roundup-server.1', | 76 'doc/roundup-mailgw.1', 'doc/roundup-server.1', |
| 77 'doc/roundup-demo.1'])) | 77 'doc/roundup-demo.1'])) |
| 78 | 78 |
| 79 # add the templates to the data files lists | 79 # add the templates to the data files lists |
| 80 from roundup.init import listTemplates | 80 from roundup.init import listTemplates |
| 81 templates = [t['path'] for t in listTemplates('templates').values()] | 81 templates = [t['path'] for t in listTemplates(os.path.join('share','roundup','templates')).values()] |
| 82 for tdir in templates: | 82 for tdir in templates: |
| 83 # scan for data files | 83 # scan for data files |
| 84 for idir in '. detectors extensions html'.split(): | 84 for idir in '. detectors extensions html'.split(): |
| 85 idir = os.path.join(tdir, idir) | 85 idir = os.path.join(tdir, idir) |
| 86 if not os.path.isdir(idir): | 86 if not os.path.isdir(idir): |
