Skip to content

Commit e7ef9d0

Browse files
committed
Use conf file instead of environment variable
1 parent 8b48d0a commit e7ef9d0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ docset: html
2525
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2626
%: Makefile
2727
doxygen source/Doxyfile
28-
PYTHONPATH="$(realpath ../test)" @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
28+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2929
@python post_process_dispatcher.py $(BUILDDIR)
3030

3131
clean:

docs/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
import sys
2323
import warnings
2424
from datetime import datetime
25+
from pathlib import Path
26+
2527

2628
sys.path.insert(0, os.path.abspath("."))
29+
sys.path.insert(0, str(Path('..', '..', 'test').resolve()))
2730

2831

2932
import pytorch_sphinx_theme

0 commit comments

Comments
 (0)