mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 11:11:47 +02:00
Delete *.dSYM directories when cleaning
This commit is contained in:
2
setup.py
2
setup.py
@@ -793,7 +793,7 @@ def clean():
|
|||||||
exclude = ('.git',)
|
exclude = ('.git',)
|
||||||
for root, dirs, files in os.walk('.', topdown=True):
|
for root, dirs, files in os.walk('.', topdown=True):
|
||||||
dirs[:] = [d for d in dirs if d not in exclude]
|
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]
|
[(shutil.rmtree(os.path.join(root, d)), dirs.remove(d)) for d in remove_dirs]
|
||||||
for f in files:
|
for f in files:
|
||||||
ext = f.rpartition('.')[-1]
|
ext = f.rpartition('.')[-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user