Remove recursive symbolic link in lib/spack/docs from git repository (#33483)

Delete code removing the symlink during CI
This commit is contained in:
Massimiliano Culpo
2022-10-25 12:27:13 +02:00
committed by GitHub
parent d361378553
commit 4b237349a3
6 changed files with 3 additions and 16 deletions

View File

@@ -1 +0,0 @@
../../..

View File

@@ -32,6 +32,9 @@
# 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"))