This commit is contained in:
parent
03024beac3
commit
6cb316ff01
@ -1,14 +1,12 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import os
|
import os
|
||||||
import shutil
|
|
||||||
|
|
||||||
SNIPPETS_DIR = "./snippets"
|
SNIPPETS_DIR = "./snippets"
|
||||||
OUTPUT = "./output"
|
OUTPUT = "./output"
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
output = Path(OUTPUT)
|
output = Path(OUTPUT)
|
||||||
shutil.rmtree(output)
|
output.mkdir(exist_ok=True)
|
||||||
output.mkdir()
|
|
||||||
snippets_dir = Path(SNIPPETS_DIR)
|
snippets_dir = Path(SNIPPETS_DIR)
|
||||||
for snippet in snippets_dir.rglob("tpl_*.tex"):
|
for snippet in snippets_dir.rglob("tpl_*.tex"):
|
||||||
print(snippet)
|
print(snippet)
|
||||||
|
Loading…
Reference in New Issue
Block a user