From 316d3d5f157f1e1a227b57e78855a0d3a2a97ad7 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 17 Jun 2023 01:16:30 +0800 Subject: [PATCH] compat DR status rework --- .github/workflows/get_info.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/get_info.py b/.github/workflows/get_info.py index 120fd46..d787827 100644 --- a/.github/workflows/get_info.py +++ b/.github/workflows/get_info.py @@ -10,7 +10,7 @@ import rtoml sys.path.append(os.path.abspath(os.curdir)) -from Difficult_Rocket.runtime import DR_runtime +from Difficult_Rocket import DR_status args = ['-env', '-github-dev'] @@ -26,13 +26,9 @@ if sys.argv == [__file__]: # 没有输入参数,直接输出默认信息并 elif os.path.abspath(os.curdir) in sys.path and '-env' in sys.argv: with open('./.github/workflows/env.ps1', encoding='utf-8', mode='w') as env_file: - print(f'$env:DR_version = "{DR_runtime.DR_version}"', file=env_file) - print(f'$env:DR_language = "{DR_runtime.language}"', file=env_file) - print(f'$env:DR_long_version = "{DR_runtime.DR_long_version}"', file=env_file) - print(f'$env:Build_version = "{DR_runtime.Build_version}"', file=env_file) + print(f'$env:DR_version = "{DR_status.DR_version}"', file=env_file) + print(f'$env:Build_version = "{DR_status.Build_version}"', file=env_file) elif os.path.abspath(os.curdir) in sys.path and '-github' in sys.argv: - print(f'DR_version={DR_runtime.DR_version}') - print(f'DR_language={DR_runtime.language}') - print(f'DR_long_version={DR_runtime.DR_long_version}') - print(f'Build_version={DR_runtime.Build_version}') + print(f'DR_version={DR_status.DR_version}') + print(f'Build_version={DR_status.Build_version}')