Difficult-Rocket/.github/workflows/get_info.py
2022-12-30 11:18:14 +08:00

22 lines
539 B
Python

# -------------------------------
# Difficult Rocket
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
# All rights reserved
# -------------------------------
import os
import sys
# print(os.path.abspath(os.curdir))
# print(os.listdir('.'))
sys.path.append(os.path.abspath(os.curdir))
# print(sys.path)
if os.path.abspath(os.curdir) in sys.path:
from Difficult_Rocket import DR_runtime
print(f'DR_version={DR_runtime.DR_version}')
# os.system(f'echo "DR_version={DR_runtime.DR_version}" >> $GITHUB_OUTPUT')