forked from yangheng95/PyABSA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.py
22 lines (20 loc) · 939 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
# -*- coding: utf-8 -*-
# file: clean.py
# time: 2022/7/3
# author: yangheng <[email protected]>
# github: https://github.com/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_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_dirs(os.getcwd(), or_key=['integrated_datasets'])
# # rm_dirs(os.getcwd(), or_key=['checkpoints'])
# rm_dirs(r'C:\Users\chuan\OneDrive - University of Exeter\Works', or_key=['integrated_datasets', 'checkpoints', 'logs'])
# rm_files(r'C:\Users\chuan\OneDrive - University of Exeter\Works', or_key=['.pyc'])
# rm_dirs(r'/home/yangheng/', or_key=['integrated_datasets', 'checkpoints', 'logs'])