remove use less sys.path.append [build skip] [build rs skip]

This commit is contained in:
shenjack 2023-06-17 00:48:20 +08:00
parent 4128823b3f
commit 645e7ae80d

View File

@ -24,10 +24,6 @@ from io import StringIO
from pathlib import Path from pathlib import Path
from typing import TYPE_CHECKING, List, Optional, Dict, TypeVar 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: if TYPE_CHECKING:
from Difficult_Rocket.api.mod import ModInfo from Difficult_Rocket.api.mod import ModInfo
else: else:
@ -35,9 +31,10 @@ else:
from Difficult_Rocket.utils import tools from Difficult_Rocket.utils import tools
from Difficult_Rocket.api.types import Options from Difficult_Rocket.api.types import Options
from Difficult_Rocket.utils.translate import tr 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.utils.thread import new_thread
from Difficult_Rocket.crash import write_info_to_cache 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): class Console(Options):