Skip to content

Commit b03dee1

Browse files
committed
【完善】:提示信息
1 parent 20ca3a7 commit b03dee1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cmds/cmd_package.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,18 @@ def package_list():
356356
env_root = Import('env_root')
357357

358358
if not os.path.isfile(fn):
359+
if platform.system() == "Windows":
360+
os.system('chcp 65001 > nul')
359361

360-
if determine_support_chinese(env_root):
361-
print ("\n当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。")
362-
print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\n")
362+
print ("\n当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。")
363+
print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\n")
363364

364365
print ('\nNo system configuration file : .config.')
365366
print ('You should use < menuconfig > command to config bsp first.')
367+
368+
if platform.system() == "Windows":
369+
os.system('chcp 437 > nul')
370+
366371
return
367372

368373
pkgs = kconfig.parse(fn)

0 commit comments

Comments
 (0)