From 685bda4563da4598ca64fee94aa4abce55dd9043 Mon Sep 17 00:00:00 2001 From: Nick Hatch Date: Tue, 3 Sep 2013 00:08:13 +0300 Subject: Don't exclude symlinks when loading plugins --- ipalib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/util.py') diff --git a/ipalib/util.py b/ipalib/util.py index 3c52e4fd..e1407748 100644 --- a/ipalib/util.py +++ b/ipalib/util.py @@ -81,7 +81,7 @@ def find_modules_in_dir(src_dir): if not name.endswith(suffix): continue pyfile = os.path.join(src_dir, name) - if os.path.islink(pyfile) or not os.path.isfile(pyfile): + if not os.path.isfile(pyfile): continue module = name[:-len(suffix)] if module == '__init__': -- cgit