diff options
Diffstat (limited to 'lib')
l--------- | lib/spack/docs/_spack_root | 1 | ||||
-rw-r--r-- | lib/spack/docs/conf.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/docs/_spack_root b/lib/spack/docs/_spack_root deleted file mode 120000 index a8a4f8c212..0000000000 --- a/lib/spack/docs/_spack_root +++ /dev/null @@ -1 +0,0 @@ -../../..
\ No newline at end of file diff --git a/lib/spack/docs/conf.py b/lib/spack/docs/conf.py index 542a3d9024..1bdce87238 100644 --- a/lib/spack/docs/conf.py +++ b/lib/spack/docs/conf.py @@ -32,6 +32,9 @@ from sphinx.parsers import RSTParser # If extensions (or modules to document with autodoc) are in another directory, # 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. +link_name = os.path.abspath("_spack_root") +if not os.path.exists(link_name): + os.symlink(os.path.abspath("../../.."), link_name, target_is_directory=True) sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external")) sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external/pytest-fallback")) |