From 014cfaad7e80abe8da4a9b1103448332017a6bda Mon Sep 17 00:00:00 2001 From: jgstew Date: Thu, 14 Mar 2024 16:24:22 -0400 Subject: [PATCH] fix overloaded site_name --- examples/baseline_plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/baseline_plugin.py b/examples/baseline_plugin.py index 22ffa44..e8b1387 100644 --- a/examples/baseline_plugin.py +++ b/examples/baseline_plugin.py @@ -160,8 +160,10 @@ def create_baseline_from_site(site): logging.debug("Baseline XML:\n%s", baseline_xml) file_path = "tmp_baseline.bes" - site_name = "Demo" - site_path = f"custom/{site_name}" + + # the custom site to import the baseline into: + import_site_name = "Demo" + site_path = f"custom/{import_site_name}" # Does not work through console import: with open(file_path, "w", encoding="utf-8") as f: