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