fix 移除不必要的目录

This commit is contained in:
SengokuCola
2025-03-20 12:22:25 +08:00
parent 8c178b80d7
commit 500e586419
5 changed files with 27 additions and 58 deletions

View File

@@ -7,14 +7,17 @@ import jieba
import matplotlib.pyplot as plt
import networkx as nx
from dotenv import load_dotenv
from src.common.logger import get_module_logger
from loguru import logger
# from src.common.logger import get_module_logger
logger = get_module_logger("draw_memory")
# logger = get_module_logger("draw_memory")
# 添加项目根目录到 Python 路径
root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../.."))
sys.path.append(root_path)
print(root_path)
from src.common.database import db # noqa: E402
# 加载.env.dev文件