# HG changeset patch # User Catherine Devlin # Date 1289139633 18000 # Node ID cc5c68e15a83e8b3d897d849888ad1da1f489627 # Parent 3bef4253cf1b8a9ec4e244450bbe6d58c131a882# Parent be18c88a0fc8b7db1f507e9e43360c45e5729aeb merged diff -r be18c88a0fc8 -r cc5c68e15a83 cmd2.py --- a/cmd2.py Sun Nov 07 06:48:15 2010 -0500 +++ b/cmd2.py Sun Nov 07 09:20:33 2010 -0500 @@ -424,7 +424,7 @@ editor = 'notepad' else: for editor in ['gedit', 'kate', 'vim', 'emacs', 'nano', 'pico']: - if not os.system('which %s' % (editor)): + if not subprocess.Popen(['which', editor], stdout=subprocess.PIPE).communicate()[0]: break colorcodes = {'bold':{True:'\x1b[1m',False:'\x1b[22m'},