diff options
-rwxr-xr-x | build.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -45,6 +45,7 @@ def build_pdf(latexdir,destdir): destdir = os.path.abspath(destdir) + old_dir = os.path.abspath(os.getcwd()) os.chdir(latexdir) for fname in os.listdir('.'): (basename,ext) = os.path.splitext(fname) @@ -53,6 +54,7 @@ def build_pdf(latexdir,destdir): subprocess.call(['xelatex',fname]) subprocess.call(['xelatex',fname]) shutil.copy(basename+'.pdf',destdir) + os.chdir(old_dir) def build_odt(srcdir,destdir): if not os.path.isdir(destdir): |