Mercurial > p > roundup > code
view templates/detectors/__init__.py @ 26:c7c14960f413
Final commit of Grande Splite
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 22 Jul 2001 12:09:32 +0000 |
| parents | |
| children |
line wrap: on
line source
#$Id: __init__.py,v 1.1 2001-07-22 12:09:32 richard Exp $ def init(db): ''' execute the init functions of all the modules in this directory ''' import os, sys this_dir = os.path.split(__file__)[0] try: sys.path.insert(0, this_dir) for file in os.listdir(this_dir): file, ext = os.path.splitext(file) if file == '__init__': continue if ext in ('.py', '.pyc'): module = __import__(file) module.init(db) finally: del sys.path[0] # #$Log: not supported by cvs2svn $ #
