import platform TEST = False IS_A = False ##B类## MIDDLE_SERVER_PORT = 10020 def is_windows(): system = platform.system() if system == 'Windows': return True return False LOG_DIR = "logs_simulation" # 获取根路径 def get_path_prefix(): return 'D:' if is_windows() else '/home'