Skip to content

Commit 2e17b7d

Browse files
committed
allowing reference config to use log_path when provided
1 parent 0589a6d commit 2e17b7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nodescraper/cli/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@ def main(arg_input: Optional[list[str]] = None):
437437

438438
if parsed_args.reference_config:
439439
ref_config = generate_reference_config(results, plugin_reg, logger)
440-
path = os.path.join(os.getcwd(), "reference_config.json")
440+
if log_path:
441+
path = os.path.join(log_path, "reference_config.json")
442+
else:
443+
path = os.path.join(os.getcwd(), "reference_config.json")
441444
try:
442445
with open(path, "w") as f:
443446
json.dump(

0 commit comments

Comments
 (0)