代码拉取完成,页面将自动刷新
From 6214493503047d93280f7ea392689c4c2113c7dc Mon Sep 17 00:00:00 2001
From: peng_langyuan <peng_langyuan@hoperun.com>
Date: Wed, 17 May 2023 13:33:57 +0800
Subject: [PATCH 2/3] =?UTF-8?q?feat(Adapt=20to=20Openeuler):=E7=A7=BB?=
=?UTF-8?q?=E9=99=A4=E5=AF=B9productdefine=E7=9B=AE=E5=BD=95=E7=9A=84?=
=?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hb_internal/common/config.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hb_internal/common/config.py b/hb_internal/common/config.py
index abde6ec..aae3d50 100644
--- a/hb_internal/common/config.py
+++ b/hb_internal/common/config.py
@@ -288,6 +288,8 @@ class Config(metaclass=Singleton):
def built_in_product_path(self):
_built_in_product_path = os.path.join(self.root_path,
'productdefine/common/products')
+ if self._product == "openeuler":
+ return
if not os.path.isdir(_built_in_product_path):
raise OHOSException(
f'Invalid built-in product path: {_built_in_product_path}')
@@ -297,6 +299,8 @@ class Config(metaclass=Singleton):
def built_in_device_path(self):
_built_in_device_path = os.path.join(self.root_path,
'productdefine/common/device')
+ if self._product == "openeuler":
+ return
if not os.path.isdir(_built_in_device_path):
raise OHOSException(
f'Invalid built-in product path: {_built_in_device_path}')
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。