summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2023-12-21 16:25:12 -0800
committerGitHub <noreply@github.com>2023-12-21 16:25:12 -0800
commit0da1fae709cda5f224f166b2048d642914cb6e9c (patch)
tree314d445bcdf6c8129ad30899cdfbebcfa2ecf6d2 /var
parent94fc2314f163b1f8dcdf072c4b66afccff9c83b4 (diff)
downloadspack-0da1fae709cda5f224f166b2048d642914cb6e9c.tar.gz
spack-0da1fae709cda5f224f166b2048d642914cb6e9c.tar.bz2
spack-0da1fae709cda5f224f166b2048d642914cb6e9c.tar.xz
spack-0da1fae709cda5f224f166b2048d642914cb6e9c.zip
Consolidate definition of Spack's extra `sys.path` components (#41816)
To work properly, Spack requires a few directories from its repository to be added to `sys.path`. Previously these were buried in `spack_installable.main.main()`, but it's sometimes useful to get the paths separately, e.g., if you want to set up your own functioning spack environment. With this change, adding the paths is much simpler: ```python import spack_installable sys.path[:0] = get_spack_sys_paths(spack_prefix) ``` - [x] Add `get_spack_sys_paths()` method with extra paths in order. - [x] Refactor `spack_installable.main.main()` to use it.
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions