|
17 | 17 | # If extensions (or modules to document with autodoc) are in another directory, |
18 | 18 | # add these directories to sys.path here. If the directory is relative to the |
19 | 19 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
20 | | -# sys.path.append(os.path.abspath(<path>)) |
21 | | -sys.path.append(os.path.abspath('../examples/')) |
22 | | -sys.path.append(os.path.abspath('../nvtx_plugins/python')) |
23 | | - |
24 | | -import nvtx.plugins.tf |
25 | | -from nvtx.plugins.tf.package_info import __version__ |
26 | 20 |
|
| 21 | +sys.path.insert(0, os.path.abspath("../")) # Important |
| 22 | +sys.path.insert(0, os.path.abspath(os.path.join("..", "nvtx_plugins"))) # Important |
| 23 | +sys.path.insert(0, os.path.abspath(os.path.join("..", "nvtx_plugins", "python"))) # Important |
| 24 | +sys.path.insert(0, os.path.abspath(os.path.join("..", "nvtx_plugins", "python", "nvtx"))) # Important |
| 25 | +sys.path.insert(0, os.path.abspath(os.path.join("..", "nvtx_plugins", "python", "nvtx", "plugins"))) # Important |
| 26 | +sys.path.insert(0, os.path.abspath(os.path.join("..", "nvtx_plugins", "python", "nvtx", "plugins", "tf"))) # Important |
27 | 27 |
|
28 | 28 | # -- General configuration ----------------------------------------------------- |
29 | 29 |
|
|
81 | 81 | # The version info for the project you're documenting, acts as replacement for |
82 | 82 | # |version| and |release|, also used in various other places throughout the |
83 | 83 | # built documents. |
84 | | -# |
| 84 | + |
| 85 | +from package_info import __version__ |
| 86 | + |
85 | 87 | # The short X.Y version. |
86 | 88 | version = __version__ |
87 | 89 |
|
|
0 commit comments