From 2e17b7d199abc71d75d406c97ec6b055e2bf5b7a Mon Sep 17 00:00:00 2001 From: Alexandra Bara Date: Thu, 31 Jul 2025 11:44:20 -0500 Subject: [PATCH] allowing reference config to use log_path when provided --- nodescraper/cli/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodescraper/cli/cli.py b/nodescraper/cli/cli.py index c1e7161f..ef3aad04 100644 --- a/nodescraper/cli/cli.py +++ b/nodescraper/cli/cli.py @@ -437,7 +437,10 @@ def main(arg_input: Optional[list[str]] = None): if parsed_args.reference_config: ref_config = generate_reference_config(results, plugin_reg, logger) - path = os.path.join(os.getcwd(), "reference_config.json") + if log_path: + path = os.path.join(log_path, "reference_config.json") + else: + path = os.path.join(os.getcwd(), "reference_config.json") try: with open(path, "w") as f: json.dump(