Commit 008877c7 authored by Aurel's avatar Aurel

don't take CVS directory into account at import


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4467 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61efa35e
......@@ -234,8 +234,9 @@ class TemplateTool (BaseTool):
if os.path.isdir(name): # new version of business template in plain format (folder)
file_list = []
def callback(arg, directory, files):
for file in files:
file_list.append(os.path.join(directory, file))
if 'CVS' not in directory:
for file in files:
file_list.append(os.path.join(directory, file))
os.path.walk(name, callback, None)
file_list.sort()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment