提交 4bd3e5a3 编写于 作者: L lwx1153805

Descriptor: can't find vendor during system component compilation

issue:https://gitee.com/openharmony/build/issues/I6CDFX?from=project-issueSigned-off-by: Nlwx1153805 <longshining2@huawei.com>
上级 12c9f8a1
......@@ -292,7 +292,7 @@ class Config(metaclass=Singleton):
def vendor_path(self):
_vendor_path = os.path.join(self.root_path, 'vendor')
if not os.path.isdir(_vendor_path):
raise OHOSException(f'Invalid vendor path: {_vendor_path}')
_vendor_path = ''
return _vendor_path
@property
......
......@@ -83,6 +83,7 @@ class Product():
'config': config_path,
'component_type': info.get('component_type', '')
}
if config.vendor_path != '':
for company in os.listdir(config.vendor_path):
company_path = os.path.join(config.vendor_path, company)
if not os.path.isdir(company_path):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册