Remove unnecessary if/else logic for global upstream

This commit is contained in:
Carson Woods
2020-07-15 14:34:30 -04:00
parent 188a371595
commit cc00619929

View File

@@ -218,10 +218,7 @@ def root_path(name):
# Root folders where the various module files should be written
active_upstream = spack.config.get('config:active_upstream')
if active_upstream == 'global':
# Installs module files to global upstream share directory
path = os.path.join(spack.paths.share_path, name)
elif active_upstream is not None:
if active_upstream is not None:
# Installs module files to upstream share directory.
# Extra logic is needed for determining this location.
roots = spack.config.get('upstreams')[active_upstream]['modules']