From c9daa6a6213c2c147fc4b0306c9a755a3eff27b7 Mon Sep 17 00:00:00 2001 From: wangchunlin Date: Sun, 30 Jun 2024 17:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=89=93=E5=8D=B0=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common.py b/utils/common.py index ac4a984..d5b678b 100644 --- a/utils/common.py +++ b/utils/common.py @@ -16,7 +16,7 @@ from matplotlib.font_manager import FontProperties PRINT_LOG = True # 指定字体路径 -font_path = os.path.join(os.path.dirname(__file__), 'fonts', 'simhei.ttf') +font_path = os.path.join(os.path.dirname(__file__), '../fonts', 'simhei.ttf') font_prop = FontProperties(fname=font_path) # 设置 matplotlib 支持中文