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 支持中文