diff --git a/.github/workflows/get_info.py b/.github/workflows/get_info.py index 39f6a61..a31c057 100644 --- a/.github/workflows/get_info.py +++ b/.github/workflows/get_info.py @@ -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 diff --git a/.github/workflows/nuitka.yml b/.github/workflows/nuitka.yml index 0c4a3ad..29a9da6 100644 --- a/.github/workflows/nuitka.yml +++ b/.github/workflows/nuitka.yml @@ -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 # 还是得我自己写脚本