aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/find_headers.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn/find_headers.py')
-rwxr-xr-xgn/find_headers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gn/find_headers.py b/gn/find_headers.py
index 8cff31d697..1baca2fab4 100755
--- a/gn/find_headers.py
+++ b/gn/find_headers.py
@@ -24,10 +24,10 @@ blacklist = {
headers = []
for directory in include_dirs:
- for d, _, files in os.walk(directory):
- for f in files:
+ for f in os.listdir(directory):
+ if os.path.isfile(os.path.join(directory, f)):
if f.endswith('.h') and f not in blacklist:
- headers.append(os.path.join(d,f))
+ headers.append(os.path.join(directory,f))
headers.sort()
with open(skia_h, "w") as f: