From ba1fcd1f264b043cbc3e95aeaa900f6bd6ae2afa Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Thu, 7 Aug 2025 15:37:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20main=E8=87=AA=E5=8A=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?sys.path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index f69ec78..3d0a8e4 100644 --- a/main.py +++ b/main.py @@ -23,6 +23,11 @@ import os import sys import ctypes +from pathlib import Path + +current_dir = Path(__file__).resolve().parent +if str(current_dir) not in sys.path: + sys.path.insert(0, str(current_dir)) from app.utils import get_logger