From a2b1660079bba3a8091abb7458eda3676d05bc4e Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 11 Sep 2002 07:10:08 +0000 Subject: [PATCH] hrm. don't activate detectors if they're just pyc git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1136 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/templates/classic/detectors/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roundup/templates/classic/detectors/__init__.py b/roundup/templates/classic/detectors/__init__.py index c67a30f..b595df8 100644 --- a/roundup/templates/classic/detectors/__init__.py +++ b/roundup/templates/classic/detectors/__init__.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: __init__.py,v 1.4 2002-09-10 01:07:06 richard Exp $ +#$Id: __init__.py,v 1.5 2002-09-11 07:10:08 richard Exp $ def init(db): ''' execute the init functions of all the modules in this directory @@ -26,8 +26,9 @@ def init(db): 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'): + if file == '__init__': + continue + if ext in '.py': module = __import__(file) module.init(db) finally: -- 2.30.2