Restructure: remove separate parser
This commit is contained in:
@@ -24,7 +24,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
|
filename = in_file.name.split('.')[0] + ".js"
|
||||||
|
|
||||||
with open(filename, 'w') as file:
|
with open(filename, 'w') as file:
|
||||||
file.writelines(output)
|
file.writelines(output)
|
||||||
|
|||||||
Reference in New Issue
Block a user