From eff077505484ba21a86c45315c916c961dfce025 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 16 Aug 2022 13:25:44 +0800 Subject: [PATCH] rua --- Difficult_Rocket/utils/shenjack.py | 12 +++++++----- Difficult_Rocket/utils/translate.py | 3 ++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Difficult_Rocket/utils/shenjack.py b/Difficult_Rocket/utils/shenjack.py index fbef412..51a4c2c 100644 --- a/Difficult_Rocket/utils/shenjack.py +++ b/Difficult_Rocket/utils/shenjack.py @@ -3,6 +3,10 @@ @contact 3695888@qq.com """ import os +# os.chdir('../../') +import sys +sys.path.append(os.path.abspath('./Difficult_Rocket')) +print(sys.path) # if __name__ == "__main__": # os.chdir('../') @@ -25,8 +29,7 @@ from Difficult_Rocket.utils.thread import ThreadLock # 将会创建一个空 logger # 可以自行通过 # 配置方式二 -# -# + color_reset_suffix = "\033[0m" """ 只是用来重置颜色的后缀 """ @@ -357,9 +360,8 @@ def get_logger(name: str = 'name') -> Logger: if __name__ == "__main__": - import os + # import os - os.chdir('../../') # 在这里可以使用 add_kwargs_to_global logger = Logger(name="Main") logger1 = Logger(name="RenderThread") @@ -368,7 +370,6 @@ if __name__ == "__main__": logger.info("Hello World!!") logger1.error("OpenGL Error 10086") logger2.warning("Cannot write file.") - exit(0) some_logger = Logger(name='aaa') some_logger.level = ALL @@ -380,3 +381,4 @@ if __name__ == "__main__": a_cache.append('123123') print(a_cache[0]) print(a_cache) + \ No newline at end of file diff --git a/Difficult_Rocket/utils/translate.py b/Difficult_Rocket/utils/translate.py index 2580b97..1b57aac 100644 --- a/Difficult_Rocket/utils/translate.py +++ b/Difficult_Rocket/utils/translate.py @@ -29,7 +29,8 @@ from Difficult_Rocket.exception.language import * class Tr: """ - 我不装了,我就复刻tr + 我不装了,我就抄了tr + GOOD """ def __init__(self): self.config_regs = {}