Skip to content
Snippets Groups Projects
Commit c789d8a6 authored by marco's avatar marco
Browse files

Provide a proper fix for a problem r2384 tried to work around

Look first for sphinx-build, then for sphinx-build-2.6. As part
of this change, it is now required to run make.py with ost as
we make use of the settings.Locate() function

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2390 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 0e19ef31
No related branches found
No related tags found
No related merge requests found
import os, sys, re
import shutil
from ost import settings
if len(sys.argv)==2:
root_dir=sys.argv[1]
else:
......@@ -61,5 +62,6 @@ def _CollectRstDocs(outdir, dirname, fnames):
for sub_dir in ('modules',):
os.path.walk(sub_dir, _CollectRstDocs, 'doc/source')
os.system('sphinx-build-2.6 -b html -c %s %s %s' % ('doc/conf', 'doc/source',
'doc/build'))
sphinx_bin=settings.Locate(['sphinx-build', 'sphinx-build-2.6'])
os.system('%s -b html -c %s %s %s' % (sphinx_bin, 'doc/conf', 'doc/source',
'doc/build'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment