# Path: config/base_settings.py
# OUTPUT_PATH = os.path.join(BASE_PATH, 'output')


import logging
import os
import sys
import shutil
from config.base_settings import OUTPUT_PATH
"""
文件清理模块，调用后清理所有log和output文件
"""



logging.getLogger(__name__).setLevel(logging.DEBUG)


def clean_outputs():
    """
    清理输出文件夹的内容
    :return:
    """
    output_list = os.listdir(OUTPUT_PATH)
    for output in output_list:

# Path: config/base_settings.py
# OUTPUT_PATH = os.path.join(BASE_PATH, 'output')


# Path: clean.py
import logging
import os
import sys
import shutil
from config.base_settings import OUTPUT_PATH

"""
文件清理模块，调用后清理所有log和output文件
"""



logging.getLogger(__name__).setLevel(logging.DEBUG)


def clean_outputs():
    """
    清理输出文件夹的内容
    :return:
    """
    output_list = os.listdir(OUTPUT_PATH)
    for output in output_list:

        shutil.rmtree(os.path.join(OUTPUT_PATH, output))