Merge branch 'delete_.dSYM' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-06-24 15:59:30 +05:30
commit 9c9eac9d46
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -793,7 +793,7 @@ def clean():
exclude = ('.git',)
for root, dirs, files in os.walk('.', topdown=True):
dirs[:] = [d for d in dirs if d not in exclude]
remove_dirs = {d for d in dirs if d == '__pycache__'}
remove_dirs = {d for d in dirs if d == '__pycache__' or d.endswith('.dSYM')}
[(shutil.rmtree(os.path.join(root, d)), dirs.remove(d)) for d in remove_dirs]
for f in files:
ext = f.rpartition('.')[-1]