From e83e5effc55bf7006036819e26cd9fc45fe75200 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 3 Nov 2009 01:56:27 +0000 Subject: [PATCH] Skip hidden directories, and the po and locale system dirs of gramps-addons svn: r13485 --- src/gen/plug/_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gen/plug/_manager.py b/src/gen/plug/_manager.py index 8453a83a4..0d06a6cfd 100644 --- a/src/gen/plug/_manager.py +++ b/src/gen/plug/_manager.py @@ -107,9 +107,9 @@ class BasePluginManager(object): return False # return value is True for error for (dirpath, dirnames, filenames) in os.walk(direct, followlinks=True): - # Skip hidden directories. for dirname in dirnames: - if dirname.startswith("."): + # Skip hidden and system directories: + if dirname.startswith(".") or dirname in ["po", "locale"]: dirnames.remove(dirname) # add the directory to the python search path sys.path.append(dirpath)