Set default editor to vi if EDITOR is not set.

This commit is contained in:
Todd Gamblin 2014-06-22 10:05:05 -07:00
parent 3303365d12
commit c256d5d1ac

View file

@ -93,7 +93,7 @@
from spack.util.executable import Executable, which
# User's editor from the environment
editor = Executable(os.environ.get("EDITOR", ""))
editor = Executable(os.environ.get("EDITOR", "vi"))
# Curl tool for fetching files.
curl = which("curl", required=True)