diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/edit.py | 2 |
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) - |