File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,6 @@ stderr_devnull_0 = >/dev/null 2>&1
427427
428428$(MAN_FILES ) : manpages.py conf.py $(RST_FILES )
429429 $(sphinx_man ) \
430- PYTHONPATH=$(PYTHONPATH ) :$(abs_srcdir ) \
431430 SPHINX_BUILDDIR=$(abs_builddir ) $(PYTHON ) \
432431 -m sphinx $(sphinx_verbose_flags ) -b man $(srcdir ) ./man \
433432 $(STDERR_DEVNULL )
@@ -440,7 +439,6 @@ $(MAN_FILES): manpages.py conf.py $(RST_FILES)
440439.PHONY : html
441440html : conf.py $(RST_FILES )
442441 $(sphinx_html ) \
443- PYTHONPATH=$(PYTHONPATH ) :$(abs_srcdir ) \
444442 SPHINX_BUILDDIR=$(abs_builddir ) $(PYTHON ) \
445443 -m sphinx $(sphinx_verbose_flags ) -b html $(srcdir ) ./html \
446444 $(STDERR_DEVNULL )
Original file line number Diff line number Diff line change 2222#
2323import os
2424import sys
25+
26+ # add `manpages` directory to sys.path
27+ import pathlib
28+ sys .path .append (str (pathlib .Path (__file__ ).absolute ().parent ))
29+
2530from manpages import man_pages
2631import docutils .nodes
2732
You can’t perform that action at this time.
0 commit comments