chore: Remove obsolete scripts and enhance path configuration
- Deleted `check_md_files.py` and `fix_cursor_md_issue.py` as they are no longer needed. - Added new functions in `path_config.py` for better path management, including actions log and run_cli paths. - Updated various modules to utilize the new path configuration, ensuring consistency and maintainability across the project.
This commit is contained in:
1 parent
b9849b9f5a
commit
bdf9312bc9
58 files changed
+2472
-854
No files matched your search
@@ -6,3 +6,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@ def create_actions_log_viewer(
|
||||
path = path_config.get_actions_log_path()
|
||||
except Exception:
|
||||
# 回退到旧路径(向后兼容)
|
||||
path = os.path.join(os.path.dirname(__file__), "..", "logs", "actions.log")
|
||||
path = os.path.abspath(path)
|
||||
import path_config
|
||||
path = path_config.get_actions_log_path()
|
||||
|
||||
try:
|
||||
if os.path.exists(path):
|
||||
|
||||
@@ -46,3 +46,8 @@ def save_ui_to_config(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -56,3 +56,8 @@ def create_device_selector(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -42,3 +42,8 @@ def create_image_viewer(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -38,3 +38,8 @@ def create_main_window(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -39,3 +39,8 @@ def create_ocr_panel(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user