From 41016acae3e8ac04a9f31e9fa1d387f5b3b00afc Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Sat, 12 Jan 2013 17:08:39 +0000 Subject: Fix pep8ing scripts The tools directory is gone. --- 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 -- cgit v0.9.1