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):