From 7eccc230b7371b1d5fe9853de41bd6dea0cd235e Mon Sep 17 00:00:00 2001 From: Peter Suter Date: Thu, 25 Sep 2014 08:50:34 +0000 Subject: [PATCH] Fix ``make.bat latexpdf`` mechanism to ``cd`` back to the build directory. (see #1520) Set ``%BUILDDIR%`` to an absolute path using the common ``%~dp0`` trick. --- sphinx/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py index f81b38f05..9ec183ce9 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -637,7 +637,7 @@ REM Command file for Sphinx documentation if "%%SPHINXBUILD%%" == "" ( \tset SPHINXBUILD=sphinx-build ) -set BUILDDIR=%(rbuilddir)s +set BUILDDIR=%%~dp0%(rbuilddir)s set ALLSPHINXOPTS=-d %%BUILDDIR%%/doctrees %%SPHINXOPTS%% %(rsrcdir)s set I18NSPHINXOPTS=%%SPHINXOPTS%% %(rsrcdir)s if NOT "%%PAPER%%" == "" (