15 lines
339 B
Python
15 lines
339 B
Python
from pathlib import Path
|
|
import os
|
|
|
|
SNIPPETS_DIR = "./snippets"
|
|
OUTPUT = "./output"
|
|
|
|
if __name__ == "__main__":
|
|
output = Path(OUTPUT)
|
|
output.mkdir(exist_ok=True)
|
|
snippets_dir = Path(SNIPPETS_DIR)
|
|
for snippet in snippets_dir.rglob("tpl_*.tex"):
|
|
print(snippet)
|
|
assert os.system(f"bopytex -n {snippet}") == 0
|
|
|