From 4ab133c3cb8fa9a9aff2b7e5d1c53a0feb164f3f Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 12 Feb 2009 02:10:12 -0700 Subject: Implemented more elegant way for entire plugin module to be conditionally skipped; updated cert.py and ra.py modules to use this --- ipalib/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/util.py') diff --git a/ipalib/util.py b/ipalib/util.py index 13f75082..f1a7928a 100644 --- a/ipalib/util.py +++ b/ipalib/util.py @@ -54,13 +54,13 @@ def find_modules_in_dir(src_dir): for name in sorted(os.listdir(src_dir)): if not name.endswith(suffix): continue - py_file = path.join(src_dir, name) - if path.islink(py_file) or not path.isfile(py_file): + pyfile = path.join(src_dir, name) + if path.islink(pyfile) or not path.isfile(pyfile): continue module = name[:-len(suffix)] if module == '__init__': continue - yield module + yield (module, pyfile) # FIXME: This function has no unit test -- cgit