Updated Venusian exclusion rule
authorThierry Florac <thierry.florac@onf.fr>
Mon, 05 Nov 2018 11:17:52 +0100
changeset 1056 e8a0de576e99
parent 1055 fb31161cac2d
child 1057 1359212b0034
Updated Venusian exclusion rule
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()