contrib/import-checker.py
branchstable
changeset 47801 42e2cdb50db0
parent 47377 26127236b229
child 48834 029b76d645dc
--- a/contrib/import-checker.py	Mon Aug 02 08:06:27 2021 -0400
+++ b/contrib/import-checker.py	Tue Aug 03 18:29:31 2021 +0200
@@ -278,6 +278,8 @@
         ):
             continue
         for top, dirs, files in os.walk(libpath):
+            if 'dist-packages' in top.split(os.path.sep):
+                continue
             for i, d in reversed(list(enumerate(dirs))):
                 if (
                     not os.path.exists(os.path.join(top, d, '__init__.py'))