@@ -0,0 +1,6 @@
+abcd, 你好abcd, 你好
+abcd, 你好
+12
@@ -138,7 +138,7 @@ class MainWindow(QMainWindow, Ui_menu):
# 获取项目当前路径
current_path = sys.path[0]
# 拼接 txt 文件路径
- file_path = f"{current_path}/results/2024-05-27.txt"
+ file_path = get_resource_path("results/2024-05-27.txt")
try:
QDesktopServices.openUrl(QUrl.fromLocalFile(file_path))
except Exception as e: