aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2012-04-17 11:34:09 +0200
committerElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2012-04-17 11:34:09 +0200
commit2aacf3a74f3bcaa9c5ffb99fb438235b347bad01 (patch)
tree487418a1267a7f7f89001513c6222ebce76d1e9e /build.py
parent8e024378d37d9695c278f96c4b4fc8b8475042a8 (diff)
build.py: sistemato problema con la cwd dopo aver buildato pdf
Diffstat (limited to 'build.py')
-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):