diff options
| author | Catherine Devlin <catherine.devlin@gmail.com> | 2010-11-07 09:24:11 -0500 |
|---|---|---|
| committer | Catherine Devlin <catherine.devlin@gmail.com> | 2010-11-07 09:24:11 -0500 |
| commit | 79057a962c91ef7a854c0258f5b2288ee7cafa7e (patch) | |
| tree | 6eb92a613f8ee9dd6b121dc0ef30cb8d96b831ab /cmd2.py | |
| parent | 142c4458eed9ccc23fb0ebbaf6d1ce0b03c7ea44 (diff) | |
| download | cmd2-git-79057a962c91ef7a854c0258f5b2288ee7cafa7e.tar.gz | |
was detecting first absent editor, not first presnt
Diffstat (limited to 'cmd2.py')
| -rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -424,7 +424,7 @@ class Cmd(cmd.Cmd): 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'}, |
