Skip to content

Commit

Permalink
Added a script to clean cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MaT1g3R committed Jul 14, 2017
1 parent 91f4452 commit e9ad309
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions clean_cache.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from itertools import chain
from pathlib import Path

from idol_images import idol_img_path
from logs import log_path


def clean():
for _path in chain(log_path.iterdir(), idol_img_path.iterdir()):
path = Path(_path)
if not path.name.endswith('.py') and not path.is_dir():
path.unlink()


if __name__ == '__main__':
clean()

0 comments on commit e9ad309

Please sign in to comment.