Skip to content

Commit

Permalink
Merge pull request #208 from ThomasWaldmann/fix-sphinx-conf
Browse files Browse the repository at this point in the history
sphinx conf.py: fix sys.path adjustment
  • Loading branch information
ThomasWaldmann committed Jul 2, 2019
2 parents e0b6f8a + 92f14ac commit e596462
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
import os
import sys
sys.path.insert(0, os.path.abspath('../src'))
this_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.abspath(os.path.join(this_dir, '..', '..', 'src')))

from bepasty._version import version

Expand Down

0 comments on commit e596462

Please sign in to comment.