From d648f74366d945df4d386d407b2053c8c5c134a1 Mon Sep 17 00:00:00 2001 From: YaoFANGUK Date: Thu, 26 Oct 2023 10:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=8C=85=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index f088dfe..71d502c 100644 --- a/backend/main.py +++ b/backend/main.py @@ -4,7 +4,8 @@ from pathlib import Path import threading import cv2 import sys -sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import importlib import numpy as np from tqdm import tqdm