summaryrefslogtreecommitdiff
path: root/lib/spack/docs/conf.py
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-10-25 12:27:13 +0200
committerGitHub <noreply@github.com>2022-10-25 12:27:13 +0200
commit4b237349a32798bbdfd55e8c41f9d79180ce2cf2 (patch)
treea07a78c8c82a3c8dbd065636693aaaf7cbc4d2a3 /lib/spack/docs/conf.py
parentd361378553812f1bd173ded62be404bd1ae1b858 (diff)
downloadspack-4b237349a32798bbdfd55e8c41f9d79180ce2cf2.tar.gz
spack-4b237349a32798bbdfd55e8c41f9d79180ce2cf2.tar.bz2
spack-4b237349a32798bbdfd55e8c41f9d79180ce2cf2.tar.xz
spack-4b237349a32798bbdfd55e8c41f9d79180ce2cf2.zip
Remove recursive symbolic link in lib/spack/docs from git repository (#33483)
Delete code removing the symlink during CI
Diffstat (limited to 'lib/spack/docs/conf.py')
-rw-r--r--lib/spack/docs/conf.py3
1 files changed, 3 insertions, 0 deletions
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"))