diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-01-12 17:08:39 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-01-12 17:08:39 (GMT) |
commit | 41016acae3e8ac04a9f31e9fa1d387f5b3b00afc (patch) | |
tree | 4425ad37e7cd34f00821246ddd01c98696d6fa74 /commands/check | |
parent | 9df864239ea8e66d9385a66a1b5e20cb0f534217 (diff) |
Fix pep8ing scripts
The tools directory is gone.
Diffstat (limited to 'commands/check')
-rwxr-xr-x | commands/check | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/commands/check b/commands/check index 5971448..d5c1348 100755 --- a/commands/check +++ b/commands/check @@ -26,16 +26,14 @@ def _get_test_path(name): def _get_python_scripts(): shebang = "#!/usr/bin/env python" - dirs = ["commands", "tools"] scripts = [] - for dir_name in dirs: - dir_path = os.path.join(common.base_dir, dir_name) - for name in os.listdir(dir_path): - script_path = os.path.join(dir_path, name) - with open(script_path) as f: - if f.read(len(shebang)) == shebang: - scripts.append(script_path) + dir_path = os.path.join(common.base_dir, "commands") + for name in os.listdir(dir_path): + script_path = os.path.join(dir_path, name) + with open(script_path) as f: + if f.read(len(shebang)) == shebang: + scripts.append(script_path) return scripts |