fix: 修复4个bug - cd路径、chcp乱码、窗口行数、拖拽路径引号
This commit is contained in:
@@ -48,7 +48,7 @@ def select_file() -> Optional[str]:
|
|||||||
4. 循环直到用户输入有效路径或取消
|
4. 循环直到用户输入有效路径或取消
|
||||||
"""
|
"""
|
||||||
while True:
|
while True:
|
||||||
filepath = input("请输入PinMAP文件路径(直接回车弹窗选择): ").strip()
|
filepath = input("请输入PinMAP文件路径(直接回车弹窗选择): ").strip().strip('"\'')
|
||||||
|
|
||||||
if not filepath:
|
if not filepath:
|
||||||
# 弹窗选择
|
# 弹窗选择
|
||||||
|
|||||||
6
run.bat
6
run.bat
@@ -1,12 +1,12 @@
|
|||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
:: 初始化区
|
:: 初始化区
|
||||||
chcp 65001
|
chcp 65001 >nul
|
||||||
title PinMAP转PinList -By:LeeQwQ
|
title PinMAP转PinList -By:LeeQwQ
|
||||||
mode con cols=80 lines=20
|
mode con cols=80 lines=50
|
||||||
color 0B
|
color 0B
|
||||||
cls
|
cls
|
||||||
|
|
||||||
cd /d "%~dp0src"
|
cd /d "%~dp0Code\src"
|
||||||
python main.py
|
python main.py
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
|
|||||||
Reference in New Issue
Block a user