Skip to content

Commit 0176e71

Browse files
committed
【完善】:将找不到 .config 文件的提示信息修改为更容易理解的中文提示
1 parent 9690a36 commit 0176e71

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmds/cmd_package.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,8 @@ def pre_package_update():
490490
bsp_root = Import('bsp_root')
491491

492492
if not os.path.exists('.config'):
493-
print (
494-
"Can't find file .config.Maybe your working directory isn't in bsp root now.")
495-
print ("if your working directory isn't in bsp root now,please change your working directory to bsp root.")
496-
print ("if your working directory is in bsp root now, please use menuconfig command to create .config file first.")
493+
print ("当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。")
494+
print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。")
497495
return False
498496

499497
bsp_packages_path = os.path.join(bsp_root, 'packages')

0 commit comments

Comments
 (0)