# HG changeset patch # User Catherine Devlin # Date 1289139851 18000 # Node ID f5aa16a22b52898198a265ee623d953da807ce9f # Parent cc5c68e15a83e8b3d897d849888ad1da1f489627 was detecting first absent editor, not first presnt diff -r cc5c68e15a83 -r f5aa16a22b52 cmd2.py --- 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'},