aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.py b/build.py
index ec80be1..ee821c8 100755
--- a/build.py
+++ b/build.py
@@ -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):