handle_path.py 988 Bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2022/12/9 00:08
# @Author  : Shitou
# @FileName: handle_path.py
# @Software: PyCharm
"""
封装获取路径
"""
import os

# 项目根目录
Base_Path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 测试用例的路径
TestCase_Path = os.path.join(Base_Path, "testcase")
# 测试报告的路径
Report_Path = os.path.join(Base_Path, "report")
# 日志的路径
Log_Path = os.path.join(Base_Path, "logs")
# 测试数据的Excel
DataExcel_Path = os.path.join(Base_Path, "data")
# --------------------------------------------
TeachingAffairs_path = os.path.join(DataExcel_Path, "teaching_affairs")  # 教务系统管理列表
System_path = os.path.join(DataExcel_Path, "system")  # 系统管理列表
Internship_path = os.path.join(DataExcel_Path, "Internship_preparation")  # 实习准备目录
# --------------------------------------------
# 配置文件的路径
Config_Path = os.path.join(Base_Path, "conf")