From 485b4742229fead59eb765ca0b04cf30da09b9a0 Mon Sep 17 00:00:00 2001 From: xqyjlj Date: Sun, 14 Dec 2025 09:57:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E4=BC=98=E5=8C=96sys.pa?= =?UTF-8?q?th=E7=9A=84=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xqyjlj --- server/utils/sys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/sys.py b/server/utils/sys.py index 0ddbb5da..88aab5f7 100644 --- a/server/utils/sys.py +++ b/server/utils/sys.py @@ -31,7 +31,7 @@ class SysUtils: def __init__(self): - if sys.path[-1] != self.public_folder(): + if self.public_folder() not in sys.path: sys.path.append(self.public_folder()) @staticmethod