From 8cbae642cc9703c12cdd8c5118544fab16038cfb Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Thu, 28 May 2015 17:13:23 -0700 Subject: Fix bug in spack edit -c --- lib/spack/spack/cmd/edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) - -- cgit v1.2.3-60-g2f50