add default import and add libs.

This commit is contained in:
shenjack 2023-05-02 13:09:51 +08:00
parent d08bd3122d
commit db7cf30568
3 changed files with 3 additions and 5 deletions

1
DR.py
View File

@ -100,6 +100,7 @@ def main() -> None:
print(crash.all_thread) print(crash.all_thread)
print(crash.all_process) print(crash.all_process)
print("Difficult_Rocket 已关闭") print("Difficult_Rocket 已关闭")
sys.exit(0)
if __name__ == '__main__': if __name__ == '__main__':

View File

@ -11,9 +11,6 @@ github: @shenjackyuanjie
gitee: @shenjackyuanjie gitee: @shenjackyuanjie
""" """
from typing import TYPE_CHECKING from Difficult_Rocket.api import screen, mod, exception
if TYPE_CHECKING:
from Difficult_Rocket.api import screen, mod, exception
__all__ = ['screen', 'mod', 'exception'] __all__ = ['screen', 'mod', 'exception']

View File

@ -8,7 +8,7 @@
from typing import Tuple, List, Optional from typing import Tuple, List, Optional
# from libs # from libs
from MCDR.version import Version from libs.MCDR.version import Version
# from DR # from DR
from Difficult_Rocket.main import Game from Difficult_Rocket.main import Game