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