Commit b7f8bc5b authored by ale's avatar ale

fix relative path of scanned files

parent b832e86b
......@@ -14,7 +14,8 @@ def scan_dir(root_dir, includes, excludes, changed):
root_dir = root_dir + '/'
for dirpath, dirnames, filenames in os.walk(root_dir):
relpath = dirpath[len(root_dir):]
for path in filenames:
for filename in filenames:
path = os.path.join(relpath, filename)
if ((excludes and match_any(path, excludes)) or
(includes and not match_any(path, includes))):
continue
......
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