From 9f74bdacce8f9b892ec0abd4e9147fc6ff21ca94 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 17 Dec 2009 04:02:04 +0000 Subject: [PATCH] Was adding .svn and subdirectories; this should properly limit subdirs svn: r13832 --- src/gen/plug/_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gen/plug/_manager.py b/src/gen/plug/_manager.py index f4d20d6b8..32e8473db 100644 --- a/src/gen/plug/_manager.py +++ b/src/gen/plug/_manager.py @@ -108,6 +108,10 @@ class BasePluginManager(object): return False # return value is True for error for (dirpath, dirnames, filenames) in os.walk(direct): + root, subdir = os.path.split(dirpath) + if subdir.startswith("."): + dirnames[:] = [] + continue for dirname in dirnames: # Skip hidden and system directories: if dirname.startswith(".") or dirname in ["po", "locale"]: