Difficult-Rocket/.github/workflows/get_info.py

21 lines
476 B
Python
Raw Normal View History

2022-12-29 17:11:44 +08:00
# -------------------------------
# Difficult Rocket
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
# All rights reserved
# -------------------------------
import os
import sys
2022-12-29 17:30:04 +08:00
print(os.path.abspath(os.curdir))
2022-12-29 17:17:14 +08:00
print(os.listdir('.'))
2022-12-29 17:30:04 +08:00
sys.path.append(os.path.abspath(os.curdir))
2022-12-29 17:11:44 +08:00
print(sys.path)
2022-12-29 17:30:04 +08:00
from Difficult_Rocket import DR_runtime
2022-12-29 17:45:47 +08:00
print(f'DR_version={DR_runtime.DR_version}')
os.system(f'echo "DR_version={DR_runtime.DR_version}" >> $GITHUB_OUTPUT')