diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-01-25 07:54:12 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-01-25 07:54:12 -0800 |
commit | d4180d35ddf80a7ff1656d85ac6c8c5859e54a3c (patch) | |
tree | cf3db7d2076152a69bbefd4f93eb012205e05077 | |
parent | 8ef800f64f096b490f2abee2e4a0150c06655563 (diff) | |
parent | 323bba99f18d0d774e76feb7f0d28a87fac2d93f (diff) | |
download | spack-d4180d35ddf80a7ff1656d85ac6c8c5859e54a3c.tar.gz spack-d4180d35ddf80a7ff1656d85ac6c8c5859e54a3c.tar.bz2 spack-d4180d35ddf80a7ff1656d85ac6c8c5859e54a3c.tar.xz spack-d4180d35ddf80a7ff1656d85ac6c8c5859e54a3c.zip |
Merge pull request #395 from adamjstewart/features/orphan
Fix variable name bug
-rwxr-xr-x | bin/spack | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -42,9 +42,9 @@ SPACK_EXTERNAL_LIBS = os.path.join(SPACK_LIB_PATH, "external") sys.path.insert(0, SPACK_EXTERNAL_LIBS) import warnings -# 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 -# to sys.path. +# 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 +# to sys.path. with warnings.catch_warnings(): warnings.filterwarnings("ignore", ".*nose was already imported") import nose @@ -62,7 +62,7 @@ for pyc_file in orphaned_pyc_files: try: os.remove(pyc_file) 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. try: |