From 645e7ae80d55d0e180d3b45c223c091e7078859c Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 17 Jun 2023 00:48:20 +0800 Subject: [PATCH] remove use less sys.path.append [build skip] [build rs skip] --- Difficult_Rocket/main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Difficult_Rocket/main.py b/Difficult_Rocket/main.py index d888ea1..2b05854 100644 --- a/Difficult_Rocket/main.py +++ b/Difficult_Rocket/main.py @@ -24,10 +24,6 @@ from io import StringIO from pathlib import Path from typing import TYPE_CHECKING, List, Optional, Dict, TypeVar -if __name__ == '__main__': # been start will not run this - sys.path.append('/bin/libs') - sys.path.append('/bin') - if TYPE_CHECKING: from Difficult_Rocket.api.mod import ModInfo else: @@ -35,9 +31,10 @@ else: from Difficult_Rocket.utils import tools from Difficult_Rocket.api.types import Options from Difficult_Rocket.utils.translate import tr +from Difficult_Rocket.runtime import DR_runtime from Difficult_Rocket.utils.thread import new_thread from Difficult_Rocket.crash import write_info_to_cache -from Difficult_Rocket import client, server, DR_status, DR_runtime +from Difficult_Rocket import client, server, DR_status class Console(Options):