sub-sort by filename in find_c_files()

This commit is contained in:
Kovid Goyal 2019-07-16 16:40:48 +05:30
parent 97c2b7c1fe
commit b6fb087d7e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -522,7 +522,7 @@ def find_c_files():
ans, headers = [], []
d = 'kitty'
exclude = {'fontconfig.c', 'freetype.c', 'desktop.c'} if is_macos else {'core_text.m', 'cocoa_window.m', 'macos_process_info.c'}
for x in os.listdir(d):
for x in sorted(os.listdir(d)):
ext = os.path.splitext(x)[1]
if ext in ('.c', '.m') and os.path.basename(x) not in exclude:
ans.append(os.path.join('kitty', x))