Create output file

This commit is contained in:
Jonas Zeunert
2024-04-27 15:43:27 +02:00
parent 5cb869a9d8
commit 7b3293a8f3

View File

@@ -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: