summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-05-28 17:13:23 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-05-28 17:13:23 -0700
commit8cbae642cc9703c12cdd8c5118544fab16038cfb (patch)
treec421ecbd78f64ca21e82eb7685b869779699792c
parent6f8f1bf7afe8307eed7557d794b998cb019ccf2b (diff)
downloadspack-8cbae642cc9703c12cdd8c5118544fab16038cfb.tar.gz
spack-8cbae642cc9703c12cdd8c5118544fab16038cfb.tar.bz2
spack-8cbae642cc9703c12cdd8c5118544fab16038cfb.tar.xz
spack-8cbae642cc9703c12cdd8c5118544fab16038cfb.zip
Fix bug in spack edit -c
-rw-r--r--lib/spack/spack/cmd/edit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/edit.py b/lib/spack/spack/cmd/edit.py
index c4225a7dd3..b8764ba391 100644
--- a/lib/spack/spack/cmd/edit.py
+++ b/lib/spack/spack/cmd/edit.py
@@ -95,6 +95,7 @@ def edit(parser, args):
path = join_path(spack.cmd.command_path, name + ".py")
if not os.path.exists(path):
tty.die("No command named '%s'." % name)
+ spack.editor(path)
else:
# By default open the directory where packages or commands live.
@@ -103,4 +104,3 @@ def edit(parser, args):
spack.editor(path)
else:
edit_package(name, args.force)
-