Am 12.09.2016 um 18:58 schrieb Komiya Takeshi:
> As far as I know, there are no proper way to obtain build directory in conf.py.
> But, as a adhoc way, you con obtain it through environment variables.
> [...]
Yes of course! *smack on forehead* I've completely overlooked the most obvious
solution.
For the records, this is now how I call sphinx_build inside an Ant target for
an out-of-source-tree build, maybe it is of use to someone:
<exec
executable="sphinx-build" failonerror="true"
dir="${subproject.build.basedir}">
<env key="BUILDDIR" value="${subproject.build.basedir}"/>
<arg value="-b"/> <arg value="html"/>
<arg value="-d"/> <arg value="doctree"/>
<arg value="-D"/> <arg value="release=${subproject.release}"/>
<arg value="${subproject.basedir}/source"/>
<arg value="html"/>
</exec>
Thanks a lot,
Markus