Update sys.path references (#50466)
This commit is contained in:
parent
bd5f277e17
commit
1e9be97a25
@ -35,7 +35,6 @@
|
|||||||
if not os.path.exists(link_name):
|
if not os.path.exists(link_name):
|
||||||
os.symlink(os.path.abspath("../../.."), link_name, target_is_directory=True)
|
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"))
|
||||||
sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external/_vendoring"))
|
|
||||||
sys.path.append(os.path.abspath("_spack_root/lib/spack/"))
|
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.
|
# Add the Spack bin directory to the path so that we can use its output in docs.
|
||||||
|
@ -10,7 +10,7 @@ def get_spack_sys_paths(spack_prefix):
|
|||||||
"""Given a spack prefix, return all the paths Spack needs to function."""
|
"""Given a spack prefix, return all the paths Spack needs to function."""
|
||||||
spack_libs = os.path.join(spack_prefix, "lib", "spack")
|
spack_libs = os.path.join(spack_prefix, "lib", "spack")
|
||||||
external_libs = os.path.join(spack_libs, "external")
|
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]
|
return [external_libs, spack_libs]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user