From 2aacf3a74f3bcaa9c5ffb99fb438235b347bad01 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 17 Apr 2012 11:34:09 +0200 Subject: build.py: sistemato problema con la cwd dopo aver buildato pdf --- build.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build.py') 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): -- cgit v1.2.3