-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset.py
23 lines (21 loc) · 1.08 KB
/
reset.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
import shutil
import common
def reset():
shutil.rmtree(common.KS_CAPTCHA_TRAIN_FOLDER, True)
shutil.rmtree(common.KS_CAPTCHA_SOLVE_FOLDER, True)
shutil.rmtree(common.KS_CAPTCHA_IMMUT_FOLDER, True)
shutil.rmtree(common.KS_LETTERS_DST_FOLDER, True)
os.unlink(common.KS_MODEL_FILE) if os.path.exists(common.KS_MODEL_FILE) else None
os.unlink(common.KS_LABEL_FILE) if os.path.exists(common.KS_LABEL_FILE) else None
os.unlink(common.KS_SOLVE_BASELINE) if os.path.exists(common.KS_SOLVE_BASELINE) else None
os.unlink(common.KS_IMMUT_BASELINE) if os.path.exists(common.KS_IMMUT_BASELINE) else None
#os.unlink(common.)
shutil.rmtree(common.KS_APP_LOWEST_AVG_FOLDER, True)
shutil.rmtree(common.KS_APP_RANDOM_FOLDER, True)
shutil.rmtree(common.KS_APP_LOWEST_LETTER_FOLDER, True)
shutil.rmtree(common.KS_APP_LEAST_REP_FOLDER, True)
shutil.rmtree(common.KS_APP_UNKNOWN_RANDOM_FOLDER, True)
shutil.rmtree(common.KS_APP_UNKNOWN_LOWEST_AVG_FOLDER, True)
shutil.rmtree(common.KS_APP_UNKNOWN_LOWEST_LETTER_FOLDER, True)
#shutil.rmtree(common.)