diff --git a/Code/src/file_selector.py b/Code/src/file_selector.py index a953392..2838339 100644 --- a/Code/src/file_selector.py +++ b/Code/src/file_selector.py @@ -48,7 +48,7 @@ def select_file() -> Optional[str]: 4. 循环直到用户输入有效路径或取消 """ while True: - filepath = input("请输入PinMAP文件路径(直接回车弹窗选择): ").strip() + filepath = input("请输入PinMAP文件路径(直接回车弹窗选择): ").strip().strip('"\'') if not filepath: # 弹窗选择 diff --git a/run.bat b/run.bat index d535d4c..1723b34 100644 --- a/run.bat +++ b/run.bat @@ -1,12 +1,12 @@ @ECHO OFF :: 初始化区 -chcp 65001 +chcp 65001 >nul title PinMAP转PinList -By:LeeQwQ -mode con cols=80 lines=20 +mode con cols=80 lines=50 color 0B cls -cd /d "%~dp0src" +cd /d "%~dp0Code\src" python main.py echo.