Skip to content
Snippets Groups Projects
Commit 86093aef authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix error passing in directories to clang & autopep8 utilities

Error in [0] broke "make format PATHS=source/creator" for e.g.

Thanks to @aras_p for pointing out & suggesting the fix.

[0]: 93a5e1a4
parent c1586ae2
Branches
Tags
No related merge requests found
......@@ -35,7 +35,7 @@ def compute_paths(paths, use_default_paths):
else:
paths = [
f for f in paths
if os.path.isfile(f) and f.endswith(extensions)
if os.path.isdir(f) or (os.path.isfile(f) and f.endswith(extensions))
]
if os.sep != "/":
......
......@@ -64,7 +64,7 @@ def compute_paths(paths, use_default_paths):
# "Operating" on files that will be filtered out later on.
paths = [
f for f in paths
if os.path.isfile(f) and f.endswith(extensions)
if os.path.isdir(f) or (os.path.isfile(f) and f.endswith(extensions))
]
if os.sep != "/":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment