Index: build/print_python_deps.py |
diff --git a/build/print_python_deps.py b/build/print_python_deps.py |
index 50a1f08f4bf6e87a780ac3a173b48c3e41c7705d..872f1fe851f3688131011792c9b915bb2d464b1c 100755 |
--- a/build/print_python_deps.py |
+++ b/build/print_python_deps.py |
@@ -38,7 +38,7 @@ def _ComputePythonDependencies(): |
if not path.startswith(_SRC_ROOT): |
continue |
- if path.endswith('.pyc'): |
+ if path.endswith('c') and os.path.exists(path[:-1]): |
agrieve
2017/04/26 18:19:44
nit: can you put this back to ".pyc" just so that
jbudorick
2017/04/26 19:34:22
The pyc files only end in '.pyc' if the correspond
agrieve
2017/04/27 00:30:18
did not know that!
|
path = path[:-1] |
src_paths.add(path) |