diff options
author | Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com> | 2012-04-17 11:34:09 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com> | 2012-04-17 11:34:09 +0200 |
commit | 2aacf3a74f3bcaa9c5ffb99fb438235b347bad01 (patch) | |
tree | 487418a1267a7f7f89001513c6222ebce76d1e9e | |
parent | 8e024378d37d9695c278f96c4b4fc8b8475042a8 (diff) |
build.py: sistemato problema con la cwd dopo aver buildato pdf
-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): |