Mercurial > p > roundup > code
view roundup/templates/__init__.py @ 146:da7b97149caa
Support for determining the installed tempaltes
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 30 Jul 2001 01:28:17 +0000 |
| parents | 5e71aaa87e5b |
| children | d45384bc6420 |
line wrap: on
line source
import os def listTemplates(): t_dir = os.path.split(__file__)[0] l = [] for entry in os.listdir(t_dir): # this isn't strictly necessary - the CVS dir won't be distributed if entry == 'CVS': continue if os.path.isdir(os.path.join(t_dir, entry)): l.append(entry) return l
