Skip to content
Snippets Groups Projects
Commit 323bba99 authored by Adam J. Stewart's avatar Adam J. Stewart
Browse files

Fix variable name bug

parent 8ef800f6
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,9 @@ SPACK_EXTERNAL_LIBS = os.path.join(SPACK_LIB_PATH, "external") ...@@ -42,9 +42,9 @@ SPACK_EXTERNAL_LIBS = os.path.join(SPACK_LIB_PATH, "external")
sys.path.insert(0, SPACK_EXTERNAL_LIBS) sys.path.insert(0, SPACK_EXTERNAL_LIBS)
import warnings import warnings
# Avoid warnings when nose is installed with the python exe being used to run # Avoid warnings when nose is installed with the python exe being used to run
# spack. Note this must be done after Spack's external libs directory is added # spack. Note this must be done after Spack's external libs directory is added
# to sys.path. # to sys.path.
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.filterwarnings("ignore", ".*nose was already imported") warnings.filterwarnings("ignore", ".*nose was already imported")
import nose import nose
...@@ -62,7 +62,7 @@ for pyc_file in orphaned_pyc_files: ...@@ -62,7 +62,7 @@ for pyc_file in orphaned_pyc_files:
try: try:
os.remove(pyc_file) os.remove(pyc_file)
except OSError as e: except OSError as e:
print "WARNING: Spack may fail mysteriously. Couldn't remove orphaned .pyc file: %s" % pyc print "WARNING: Spack may fail mysteriously. Couldn't remove orphaned .pyc file: %s" % pyc_file
# If there is no working directory, use the spack prefix. # If there is no working directory, use the spack prefix.
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment