fix: 修复4个bug - cd路径、chcp乱码、窗口行数、拖拽路径引号

This commit is contained in:
2026-05-26 01:52:54 +08:00
parent 836ad20515
commit 401ecf702a
2 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ def select_file() -> Optional[str]:
4. 循环直到用户输入有效路径或取消
"""
while True:
filepath = input("请输入PinMAP文件路径直接回车弹窗选择: ").strip()
filepath = input("请输入PinMAP文件路径直接回车弹窗选择: ").strip().strip('"\'')
if not filepath:
# 弹窗选择

View File

@@ -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.