# logging_example.py

import os
from utils.file import remove_dir, copy_file, get_projectnamefromkey

from utils.mylogger import getlogger

log = getlogger(__name__)

def clear_projectres(project, key=''):

    return

    # prj = project
    # if not key == '':
    #     prj = get_projectnamefromkey(key)
    #
    #
    # log.info("清除项目关键字:"+prj)
    # cwd = os.getcwd() + "/keyword/" + prj
    # try:
    #     remove_dir(cwd)
    # except FileNotFoundError:
    #     log.warning("删除项目目录失败:"+cwd)
    #
    # jsd = os.getcwd() + "/auto/www/static/js/" + prj
    # log.info("清除项目的js文件:"+prj)
    # try:
    #     remove_dir(jsd)
    # except FileNotFoundError:
    #     log.warning("删除项目目录失败:" + jsd)

if __name__ == "__main__":
    project = "RobotNew"
    clear_projectres(project)

