提交 abd1079f 编写于 作者: O openharmony_ci 提交者: Gitee

!329 Fixed products listing

Merge pull request !329 from karolgrydziuszko/fix_products_listing
......@@ -52,7 +52,7 @@ class Product():
}
bip_path = config.built_in_product_path
for item in os.listdir(bip_path):
product_name = item.rstrip('.json')
product_name = item[0:-len('.json')] if item.endswith('.json') else item
config_path = os.path.join(bip_path, item)
info = read_json_file(config_path)
yield {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册