From 6214493503047d93280f7ea392689c4c2113c7dc Mon Sep 17 00:00:00 2001 From: peng_langyuan 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