Skip to content

Commit

Permalink
[doc] deduce parser path from conf.py absolute path. (paparazzi#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien-B committed Feb 7, 2023
1 parent 152953a commit d356157
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
import os
import sys
sys.path.insert(0, "../../sw/tools/modules_doc")

parser_path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../sw/tools/modules_doc'))
print(parser_path)
sys.path.insert(0, parser_path)

# sys.path.insert(0, os.path.abspath('.'))

Expand Down

0 comments on commit d356157

Please sign in to comment.