| | |
| | | import socketserver |
| | | import subprocess |
| | | from http.server import BaseHTTPRequestHandler |
| | | from log_module.log import logger_system, logger_request_api |
| | | from log_module.log import logger_system, logger_request_api, logger_debug |
| | | |
| | | from utils import tool |
| | | |
| | |
| | | root_dir = ps_dict.get("dir") |
| | | script = ps_dict.get("script") |
| | | output_file = ps_dict.get("output") |
| | | logger_debug.info(f"编译: dir - 【{root_dir}】, script - 【{script}】, output - 【{output_file}】 ") |
| | | output_file_path = os.path.join(root_dir, output_file) |
| | | if os.path.exists(output_file_path): |
| | | os.remove(output_file_path) |