aboutsummaryrefslogtreecommitdiff
path: root/src/ee/supplier
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-01 15:26:28 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-01 15:26:28 +0200
commitc8250596fc6b50f2c92fb3952491ddfcbf0f9781 (patch)
tree19dcb4800445821fa52dad1a5b8f0e20e9a41cf7 /src/ee/supplier
parent16ccbfdc70f9407b0bd600fe600e98ecfae7f198 (diff)
downloadee-python-c8250596fc6b50f2c92fb3952491ddfcbf0f9781.tar.gz
ee-python-c8250596fc6b50f2c92fb3952491ddfcbf0f9781.tar.bz2
ee-python-c8250596fc6b50f2c92fb3952491ddfcbf0f9781.tar.xz
ee-python-c8250596fc6b50f2c92fb3952491ddfcbf0f9781.zip
ee init: Make sure the uuid is kept when reinitializing.
Diffstat (limited to 'src/ee/supplier')
-rw-r--r--src/ee/supplier/seeed.py4
1 files changed, 2 insertions, 2 deletions
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)