From 6b57408109d3cefdd7c1c3a7f7ea01c357c0ebc6 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 29 Dec 2022 17:30:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20import=20=E6=94=BE=E5=90=8E=E9=9D=A2?= =?UTF-8?q?=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/get_info.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/get_info.py b/.github/workflows/get_info.py index a9b71f5..b949e66 100644 --- a/.github/workflows/get_info.py +++ b/.github/workflows/get_info.py @@ -7,11 +7,13 @@ import os import sys -from Difficult_Rocket import DR_runtime -print(os.curdir) +print(os.path.abspath(os.curdir)) print(os.listdir('.')) +sys.path.append(os.path.abspath(os.curdir)) print(sys.path) +from Difficult_Rocket import DR_runtime + os.system(f'echo "DR_version={DR_runtime.DR_version.__str__()}" >> $GITHUB_OUTPUT')