compile.py 323 Bytes
Newer Older
1
#!/usr/bin/env python3
2
3
4
5
6
7
8
9
10
11
import csv
import subprocess
import requests

with open('compile.csv','r') as fp:
    fichiers = csv.DictReader(fp, delimiter=';')
    for seance in fichiers:
        documents = seance['fichiers'].split(' ')
        for document in documents:
            subprocess.run(['latexmk','-pdf',document])