From db7cf30568bbfd3350a768af21560566c11fbadd Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 2 May 2023 13:09:51 +0800 Subject: [PATCH] add default import and add libs. --- DR.py | 1 + Difficult_Rocket/api/__init__.py | 5 +---- Difficult_Rocket/api/mod/__init__.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/DR.py b/DR.py index fcc7634..069b0f3 100644 --- a/DR.py +++ b/DR.py @@ -100,6 +100,7 @@ def main() -> None: print(crash.all_thread) print(crash.all_process) print("Difficult_Rocket 已关闭") + sys.exit(0) if __name__ == '__main__': diff --git a/Difficult_Rocket/api/__init__.py b/Difficult_Rocket/api/__init__.py index b1c05bb..4b652d5 100644 --- a/Difficult_Rocket/api/__init__.py +++ b/Difficult_Rocket/api/__init__.py @@ -11,9 +11,6 @@ github: @shenjackyuanjie gitee: @shenjackyuanjie """ -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - from Difficult_Rocket.api import screen, mod, exception +from Difficult_Rocket.api import screen, mod, exception __all__ = ['screen', 'mod', 'exception'] diff --git a/Difficult_Rocket/api/mod/__init__.py b/Difficult_Rocket/api/mod/__init__.py index 9a94368..9b210e6 100644 --- a/Difficult_Rocket/api/mod/__init__.py +++ b/Difficult_Rocket/api/mod/__init__.py @@ -8,7 +8,7 @@ from typing import Tuple, List, Optional # from libs -from MCDR.version import Version +from libs.MCDR.version import Version # from DR from Difficult_Rocket.main import Game