From 573c32cd6511dd58e3c8be8fb0101d9a6ba3bfa1 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Wed, 16 Feb 2022 10:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=A6=BB=20gen=5Fports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: a1012112796 <1012112796@qq.com> --- sharelib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharelib.py b/sharelib.py index bdc3584..6972f57 100644 --- a/sharelib.py +++ b/sharelib.py @@ -138,7 +138,7 @@ class SharelibHandler: kcfg.writelines(['endmenu\n']) kcfg.close() - def __gen_ports(self, share_lib_path): + def gen_ports(self, share_lib_path): import json init_c_path = os.path.join(os.getcwd(), "gen_ports", "gen_ports_c.c") @@ -269,7 +269,7 @@ class SharelibHandler: json.dump(data,f, sort_keys=True, indent=4, separators=(',', ': ')) if gen_ports: - self.__gen_ports(share_lib_path) + self.gen_ports(share_lib_path) self.update_sharelib(share_lib_path)