File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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 ('\n No 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 )
You can’t perform that action at this time.
0 commit comments