diff options
author | Peter Suter <petsuter@gmail.com> | 2014-09-25 08:50:34 +0000 |
---|---|---|
committer | Peter Suter <petsuter@gmail.com> | 2014-09-25 08:50:34 +0000 |
commit | 5b63408f7095d02f9b827cbfa253385365717ab5 (patch) | |
tree | c97922a46cecc0db3f0053e4a0ef1d39e1c3968f | |
parent | ba52a493ab7712a8a3b13b75dc27af5f5c2d4ea3 (diff) | |
download | sphinx-5b63408f7095d02f9b827cbfa253385365717ab5.tar.gz |
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.
-rw-r--r-- | sphinx/quickstart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py index f81b38f0..9ec183ce 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%%" == "" ( |