From 1e9be97a25a02fe99cd3800002edbcf6eaeea6f6 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 14 May 2025 12:25:00 +0200 Subject: [PATCH] Update sys.path references (#50466) --- lib/spack/docs/conf.py | 1 - lib/spack/spack_installable/main.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/spack/docs/conf.py b/lib/spack/docs/conf.py index a695329295d..71e519630e3 100644 --- a/lib/spack/docs/conf.py +++ b/lib/spack/docs/conf.py @@ -35,7 +35,6 @@ 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/_vendoring")) sys.path.append(os.path.abspath("_spack_root/lib/spack/")) # Add the Spack bin directory to the path so that we can use its output in docs. diff --git a/lib/spack/spack_installable/main.py b/lib/spack/spack_installable/main.py index 136d814c6ad..6d33ba7bfbc 100644 --- a/lib/spack/spack_installable/main.py +++ b/lib/spack/spack_installable/main.py @@ -10,7 +10,7 @@ def get_spack_sys_paths(spack_prefix): """Given a spack prefix, return all the paths Spack needs to function.""" spack_libs = os.path.join(spack_prefix, "lib", "spack") external_libs = os.path.join(spack_libs, "external") - # spack externals take precedence, then vendored packages, then spack itself + # spack externals take precedence, then spack itself return [external_libs, spack_libs]