简化代码

This commit is contained in:
Cp0204 2024-04-09 01:41:04 +08:00
parent 5865885e6a
commit 1ea62c5d0a

View File

@ -767,12 +767,8 @@ def main():
print(f"===============程序开始===============")
print(f"⏰ 执行时间: {start_time.strftime('%Y-%m-%d %H:%M:%S')}")
print()
# 启动参数
arguments = sys.argv
if len(arguments) > 1:
config_path = arguments[1]
else:
config_path = "quark_config.json"
# 读取启动参数
config_path = sys.argv[1] if len(sys.argv) > 1 else "quark_config.json"
# 检查本地文件是否存在,如果不存在就下载
if not os.path.exists(config_path):
if os.environ.get("QUARK_COOKIE"):