Create output file
This commit is contained in:
@@ -26,7 +26,7 @@ def convert(in_file: Path) -> str:
|
|||||||
def write_output (output: str, in_file: Path, out_dir: Path) -> None:
|
def write_output (output: str, in_file: Path, out_dir: Path) -> None:
|
||||||
filename = in_file.name.split('.')[0] + ".js"
|
filename = in_file.name.split('.')[0] + ".js"
|
||||||
|
|
||||||
with open(filename, 'w') as file:
|
with open(out_dir / filename, 'w') as file:
|
||||||
file.writelines(output)
|
file.writelines(output)
|
||||||
|
|
||||||
def check_args(args) -> None:
|
def check_args(args) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user