Fix flake8 compliance

This commit is contained in:
Carson Woods
2019-07-17 09:59:21 -06:00
parent 98ec366470
commit 8994b4aab6

View File

@@ -1496,13 +1496,15 @@ def do_install(self, **kwargs):
# Install Package to Global Upstream for multi-user use
if install_global:
global_root = spack.config.get('upstreams')['global']['install_tree']
global_root = spack.config.get('upstreams')
global_root = global_root['global']['install_tree']
global_root = spack.util.path.canonicalize_path(global_root)
spack.config.set('config:active_tree', global_root)
elif upstream:
raise NotImplementedError
else:
spack.config.set('config:active_tree', spack.config.get('config:install_tree'))
spack.config.set('config:active_tree',
spack.config.get('config:install_tree'))
# For external packages the workflow is simplified, and basically
# consists in module file generation and registration in the DB