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

autopep8_clean: support passing in path arguments

parent 870f46b6
No related branches found
No related tags found
No related merge requests found
...@@ -40,8 +40,15 @@ def path_expand(paths, filename_check=None): ...@@ -40,8 +40,15 @@ def path_expand(paths, filename_check=None):
def main(): def main():
import sys
import subprocess import subprocess
for f in path_expand(PATHS, is_source):
if os.path.samefile(sys.argv[-1], __file__):
paths = path_expand(PATHS, is_source)
else:
paths = path_expand(sys.argv[1:], is_source)
for f in paths:
if f in BLACKLIST: if f in BLACKLIST:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment