From 7b3293a8f3aae240ae76c5c3c38ba4e942083c65 Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Sat, 27 Apr 2024 15:43:27 +0200 Subject: [PATCH] Create output file --- src/ergogen_footprint_converter/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ergogen_footprint_converter/main.py b/src/ergogen_footprint_converter/main.py index a375242..b5df818 100644 --- a/src/ergogen_footprint_converter/main.py +++ b/src/ergogen_footprint_converter/main.py @@ -26,7 +26,7 @@ def convert(in_file: Path) -> str: def write_output (output: str, in_file: Path, out_dir: Path) -> None: filename = in_file.name.split('.')[0] + ".js" - with open(filename, 'w') as file: + with open(out_dir / filename, 'w') as file: file.writelines(output) def check_args(args) -> None: