Fix flake8 error
This commit is contained in:
@@ -78,7 +78,6 @@ def get_tmp_root():
|
|||||||
if 'SPACK_PATH' in os.environ:
|
if 'SPACK_PATH' in os.environ:
|
||||||
candidates = os.path.join(spack_path,
|
candidates = os.path.join(spack_path,
|
||||||
'var/spack/stage')
|
'var/spack/stage')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
candidates = spack.config.get('config:build_stage')
|
candidates = spack.config.get('config:build_stage')
|
||||||
|
|
||||||
@@ -208,11 +207,10 @@ def __init__(
|
|||||||
|
|
||||||
# Determine SPACK_PATH variable
|
# Determine SPACK_PATH variable
|
||||||
if spack.config.get('config:shared'):
|
if spack.config.get('config:shared'):
|
||||||
if 'SPACK_PATH' in os.environ:
|
if 'SPACK_PATH' in os.environ:
|
||||||
spack_path = os.path.join(os.environ['SPACK_PATH'])
|
spack_path = os.path.join(os.environ['SPACK_PATH'])
|
||||||
else:
|
else:
|
||||||
spack_path = os.path.expanduser('~/.spack/')
|
spack_path = os.path.expanduser('~/.spack/')
|
||||||
|
|
||||||
|
|
||||||
# Try to construct here a temporary name for the stage directory
|
# Try to construct here a temporary name for the stage directory
|
||||||
# If this is a named stage, then construct a named path.
|
# If this is a named stage, then construct a named path.
|
||||||
@@ -500,10 +498,10 @@ def create(self):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
if spack.config.get('config:shared'):
|
if spack.config.get('config:shared'):
|
||||||
if 'SPACK_PATH' in os.environ:
|
if 'SPACK_PATH' in os.environ:
|
||||||
spack_path = os.path.join(os.environ['SPACK_PATH'])
|
spack_path = os.path.join(os.environ['SPACK_PATH'])
|
||||||
else:
|
else:
|
||||||
spack_path = os.path.expanduser('~/.spack/')
|
spack_path = os.path.expanduser('~/.spack/')
|
||||||
|
|
||||||
# Create the top-level stage directory
|
# Create the top-level stage directory
|
||||||
if spack.config.get('config:shared'):
|
if spack.config.get('config:shared'):
|
||||||
|
|||||||
Reference in New Issue
Block a user