#!/usr/bin/env python
"""This module compiles the lecture notes."""
import subprocess
import shutil
import os

from auxiliary import parse_arguments
from auxiliary import LECTURES_ROOT


def compile_single(is_update):
    """Compile a single lecture."""
    for task in ['pdflatex', 'bibtex', 'pdflatex', 'pdflatex']:
        subprocess.check_call(task + ' main', shell=True)
    shutil.move("main.pdf", "slides.pdf")


if __name__ == '__main__':

    request = parse_arguments('Create lecture slides')


    os.chdir(LECTURES_ROOT)

    for dirname in request:
        os.chdir(dirname)
        compile_single('slides')
        os.chdir('../')
e3471d21790129b44071856bce66650af757f2c3
<mask token>

<mask token>


def compile_single(is_update):
    """Compile a single lecture."""
    for task in ['pdflatex', 'bibtex', 'pdflatex', 'pdflatex']:
        subprocess.check_call(task + ' main', shell=True)
    shutil.move('main.pdf', 'slides.pdf')


<mask token>

<mask token>


def compile_single(is_update):
    """Compile a single lecture."""
    for task in ['pdflatex', 'bibtex', 'pdflatex', 'pdflatex']:
        subprocess.check_call(task + ' main', shell=True)
    shutil.move('main.pdf', 'slides.pdf')


if __name__ == '__main__':
    request = parse_arguments('Create lecture slides')
    os.chdir(LECTURES_ROOT)
    for dirname in request:
        os.chdir(dirname)
        compile_single('slides')
        os.chdir('../')

<mask token>
import subprocess
import shutil
import os
from auxiliary import parse_arguments
from auxiliary import LECTURES_ROOT


def compile_single(is_update):
    """Compile a single lecture."""
    for task in ['pdflatex', 'bibtex', 'pdflatex', 'pdflatex']:
        subprocess.check_call(task + ' main', shell=True)
    shutil.move('main.pdf', 'slides.pdf')


if __name__ == '__main__':
    request = parse_arguments('Create lecture slides')
    os.chdir(LECTURES_ROOT)
    for dirname in request:
        os.chdir(dirname)
        compile_single('slides')
        os.chdir('../')

#!/usr/bin/env python
"""This module compiles the lecture notes."""
import subprocess
import shutil
import os

from auxiliary import parse_arguments
from auxiliary import LECTURES_ROOT


def compile_single(is_update):
    """Compile a single lecture."""
    for task in ['pdflatex', 'bibtex', 'pdflatex', 'pdflatex']:
        subprocess.check_call(task + ' main', shell=True)
    shutil.move("main.pdf", "slides.pdf")


if __name__ == '__main__':

    request = parse_arguments('Create lecture slides')


    os.chdir(LECTURES_ROOT)

    for dirname in request:
        os.chdir(dirname)
        compile_single('slides')
        os.chdir('../')