diff --git a/.github/workflows/nuitka.yml b/.github/workflows/nuitka.yml index efaacd7..665dcd7 100644 --- a/.github/workflows/nuitka.yml +++ b/.github/workflows/nuitka.yml @@ -74,7 +74,9 @@ jobs: python after_build.py python setup.py clean cd .. - Remove-Item src + rm src + cd .. + cd .. # 还是得我自己写脚本 - name: Build on Windows diff --git a/Difficult_Rocket/__init__.py b/Difficult_Rocket/__init__.py index 6bdedfd..c2d4b20 100644 --- a/Difficult_Rocket/__init__.py +++ b/Difficult_Rocket/__init__.py @@ -74,7 +74,8 @@ class _DR_option(Options): test_call(self) self.DR_rust_available = True except ImportError: - traceback.print_exc() + if __name__ == '__main__': + traceback.print_exc() self.DR_rust_available = False self.flush_option()