File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 1313# All configuration values have a default; values that are commented out
1414# serve to show the default.
1515
16- import os
17- import sys
18-
1916# If extensions (or modules to document with autodoc) are in another directory,
2017# add these directories to sys.path here. If the directory is relative to the
2118# documentation root, use os.path.abspath to make it absolute, like shown here.
22- sys .path .insert (0 , os .path .abspath ('.' ))
23-
24- # Get the project root dir, which is the parent dir of this
25- cwd = os .getcwd ()
26- project_root = os .path .dirname (cwd )
27-
28- # Insert the project root dir as the first element in the PYTHONPATH.
29- # This lets us ensure that the source package is imported, and that its
30- # version is used.
31- sys .path .insert (0 , project_root )
19+ #
20+ import os
21+ import sys
22+ sys .path .insert (0 , os .path .abspath ('..' ))
3223
3324import cmake
3425
You can’t perform that action at this time.
0 commit comments