This commit is contained in:
shenjack 2022-12-30 11:30:41 +08:00
parent 3b490a0513
commit df196a220c
2 changed files with 6 additions and 5 deletions

View File

@ -7,11 +7,11 @@
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 '-env' not in sys.argv:
print(os.path.abspath(os.curdir))
print(os.listdir('.'))
print(sys.path)
if os.path.abspath(os.curdir) in sys.path:
from Difficult_Rocket import DR_runtime

View File

@ -64,7 +64,8 @@ jobs:
id: DR_info
shell: pwsh
run: |
$infos = python .github/workflows/get_info.py
python .github/workflows/get_info.py
$infos = python .github/workflows/get_info.py -env
Write-Output $infos >> $env:GITHUB_ENV
# 还是得我自己写脚本