# HG changeset patch # User Thierry Florac # Date 1541413072 -3600 # Node ID e8a0de576e990b48cced7d2dd11b04ded56c8508 # Parent fb31161cac2df22a805b9e5e16490726e429d7d7 Updated Venusian exclusion rule diff -r fb31161cac2d -r e8a0de576e99 src/pyams_content/include.py --- a/src/pyams_content/include.py Mon Nov 05 10:18:11 2018 +0100 +++ b/src/pyams_content/include.py Mon Nov 05 11:17:52 2018 +0100 @@ -12,12 +12,8 @@ __docformat__ = 'restructuredtext' - -# import standard library +import re -# import interfaces - -# import packages from pyramid.tweens import MAIN @@ -37,7 +33,7 @@ try: import pyams_zmi except ImportError: - config.scan(ignore='pyams_content.zmi') + config.scan(ignore=[re.compile('zmi').search]) else: config.scan()