From c8250596fc6b50f2c92fb3952491ddfcbf0f9781 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 1 Aug 2019 15:26:28 +0200 Subject: ee init: Make sure the uuid is kept when reinitializing. --- src/ee/supplier/seeed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ee/supplier') diff --git a/src/ee/supplier/seeed.py b/src/ee/supplier/seeed.py index 1982f68..573c4b5 100644 --- a/src/ee/supplier/seeed.py +++ b/src/ee/supplier/seeed.py @@ -149,5 +149,5 @@ def download_opl(out_path: Path, cache_dir: Path, opl_type: str): def init_project(project): opls = ["SEEED", "HQCHIP"] - project.cfg.add_section("seeed-opl") - project.cfg["seeed-opl"]["opls"] = ", ".join(opls) + section = project.get_or_create_section("seeed-opl") + section["opls"] = ", ".join(opls) -- cgit v1.2.3