view roundup/templates/__init__.py @ 190:996eaf90c01e

Instance import now imports the instance using imp.load_module... ...so that we can have instance homes of "roundup" or other existing python package names.
author Richard Jones <richard@users.sourceforge.net>
date Fri, 03 Aug 2001 00:59:34 +0000
parents da7b97149caa
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


Roundup Issue Tracker: http://roundup-tracker.org/