Was adding .svn and subdirectories; this should properly limit subdirs

svn: r13832
This commit is contained in:
Doug Blank 2009-12-17 04:02:04 +00:00
parent 00f2a1859a
commit 9f74bdacce

View File

@ -108,6 +108,10 @@ class BasePluginManager(object):
return False # return value is True for error return False # return value is True for error
for (dirpath, dirnames, filenames) in os.walk(direct): for (dirpath, dirnames, filenames) in os.walk(direct):
root, subdir = os.path.split(dirpath)
if subdir.startswith("."):
dirnames[:] = []
continue
for dirname in dirnames: for dirname in dirnames:
# Skip hidden and system directories: # Skip hidden and system directories:
if dirname.startswith(".") or dirname in ["po", "locale"]: if dirname.startswith(".") or dirname in ["po", "locale"]: