-
Notifications
You must be signed in to change notification settings - Fork 159
/
clean.py
23 lines (18 loc) · 764 Bytes
/
clean.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-
# file: clean.py
# time: 2022/7/3
# author: YANG, HENG <[email protected]> (杨恒)
# github: https:/yangheng95
# huggingface: https://huggingface.co/yangheng
# google scholar: https://scholar.google.com/citations?user=NPq5a_0AAAAJ&hl=en
# Copyright (C) 2021. All Rights Reserved.
import os
from findfile import rm_files, rm_dirs, rm_cwd_files, rm_cwd_dirs
rm_dirs(os.getcwd(), or_key=["checkpoints"])
rm_cwd_dirs(or_key=["__pycache__"])
rm_cwd_files(or_key=["pyabsa.egg-info"])
rm_cwd_dirs(or_key=["pyabsa.egg-info"])
rm_cwd_dirs(or_key=["dist"])
rm_files(os.getcwd(), or_key=[".pyc"])
rm_dirs(os.getcwd(), or_key=["checkpoints", "logs"])
# rm_dirs(os.getcwd(), or_key=["integrated_datasets", "integrated_datasets.zip"])