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 13
13
# All configuration values have a default; values that are commented out
14
14
# serve to show the default.
15
15
16
- import os
17
- import sys
18
-
19
16
# If extensions (or modules to document with autodoc) are in another directory,
20
17
# add these directories to sys.path here. If the directory is relative to the
21
18
# 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 ('..' ))
32
23
33
24
import cmake
34
25
You can’t perform that action at this time.
0 commit comments