From 7391ced8d7af19b740daf9e2d8a83f39189866a3 Mon Sep 17 00:00:00 2001 From: Marcus Stoegbauer Date: Sun, 20 Jan 2013 22:53:28 +0000 Subject: [PATCH] ignore .svn in classesdirs --- userconfig.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/userconfig.py b/userconfig.py index 1c4663a..168a164 100755 --- a/userconfig.py +++ b/userconfig.py @@ -52,9 +52,12 @@ def workconf(directory, depth=2): # fixme: create name if it does not exist workconf(name, depth+1) # if dir - if not name.endswith(".swp"): - ret.append(name) - debug.debug("Found file %s in directory %s" % (name, directory), 4) + if name.endswith(".swp"): + continue + if d == ".svn": + continue + ret.append(name) + debug.debug("Found file %s in directory %s" % (name, directory), 4) # if not .swp # for d return ret