Code

Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
[roundup.git] / roundup / templates / extended / detectors / __init__.py
1 #$Id: __init__.py,v 1.1 2001-07-23 03:50:47 anthonybaxter Exp $
3 def init(db):
4     ''' execute the init functions of all the modules in this directory
5     '''
6     import os, sys
7     this_dir = os.path.split(__file__)[0]
8     try:
9         sys.path.insert(0, this_dir)
10         for file in os.listdir(this_dir):
11             file, ext = os.path.splitext(file)
12             if file == '__init__': continue
13             if ext in ('.py', '.pyc'):
14                 module = __import__(file)
15                 module.init(db)
16     finally:
17         del sys.path[0]
19 #
20 #$Log: not supported by cvs2svn $
21 #Revision 1.1  2001/07/22 12:09:32  richard
22 #Final commit of Grande Splite
23 #
24 #