Mercurial > python-cmd2
changeset 407:f5aa16a22b52
was detecting first absent editor, not first presnt
author | Catherine Devlin <catherine.devlin@gmail.com> |
---|---|
date | Sun, 07 Nov 2010 09:24:11 -0500 |
parents | cc5c68e15a83 |
children | a53ba40b9848 |
files | cmd2.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd2.py Sun Nov 07 09:20:33 2010 -0500 +++ b/cmd2.py Sun Nov 07 09:24:11 2010 -0500 @@ -424,7 +424,7 @@ editor = 'notepad' else: for editor in ['gedit', 'kate', 'vim', 'emacs', 'nano', 'pico']: - if not subprocess.Popen(['which', editor], stdout=subprocess.PIPE).communicate()[0]: + if subprocess.Popen(['which', editor], stdout=subprocess.PIPE).communicate()[0]: break colorcodes = {'bold':{True:'\x1b[1m',False:'\x1b[22m'},