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

--
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to