import os
#获取当前文件的目录
cur_path = os.path.abspath(os.path.dirname(__file__))
# 获取根目录
root_path = cur_path[:cur_path.find("InterfaceTest_master\")+len("InterfaceTest_master\")]
print(root_path)

import os
#获取当前文件的目录
cur_path = os.path.abspath(os.path.dirname(__file__))
# 获取根目录
root_path = cur_path[:cur_path.find("InterfaceTest_master\")+len("InterfaceTest_master\")]
print(root_path)