From ff9fb2e682e6be70dde0d021d0bd7f958126ad77 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 28 May 2023 01:03:46 +0800 Subject: [PATCH] some api changes --- Difficult_Rocket/__init__.py | 3 ++- Difficult_Rocket/api/types/__init__.py | 3 +++ libs/utils/nuitka.py | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Difficult_Rocket/__init__.py b/Difficult_Rocket/__init__.py index 4892c7c..e75e021 100644 --- a/Difficult_Rocket/__init__.py +++ b/Difficult_Rocket/__init__.py @@ -13,7 +13,6 @@ from pathlib import Path from typing import Optional, List, Tuple from Difficult_Rocket.api.types import Options -from Difficult_Rocket.utils.thread import new_thread from libs.MCDR.version import Version @@ -148,6 +147,8 @@ DR_option = _DR_option() DR_runtime = _DR_runtime() if DR_option.playing: + from Difficult_Rocket.utils.thread import new_thread + def think_it(something): return something diff --git a/Difficult_Rocket/api/types/__init__.py b/Difficult_Rocket/api/types/__init__.py index bf37d47..88f2646 100644 --- a/Difficult_Rocket/api/types/__init__.py +++ b/Difficult_Rocket/api/types/__init__.py @@ -8,9 +8,12 @@ from Difficult_Rocket.utils.options import Options, FontData, Fonts, \ OptionsError, OptionNameNotDefined, OptionNotFound, \ get_type_hints_ +from libs.MCDR.version import Version + __all__ = [ # main class 'Options', + 'Version', # data class 'FontData', diff --git a/libs/utils/nuitka.py b/libs/utils/nuitka.py index 6ef5446..eb9f66d 100644 --- a/libs/utils/nuitka.py +++ b/libs/utils/nuitka.py @@ -10,8 +10,7 @@ import traceback from pathlib import Path from typing import List -from Difficult_Rocket.api.types import Options -from libs.MCDR.version import Version +from Difficult_Rocket.api.types import Options, Version class Status(Options):