diff options
| author | Catherine Devlin <catherine.devlin@gmail.com> | 2010-11-07 09:20:33 -0500 |
|---|---|---|
| committer | Catherine Devlin <catherine.devlin@gmail.com> | 2010-11-07 09:20:33 -0500 |
| commit | 142c4458eed9ccc23fb0ebbaf6d1ce0b03c7ea44 (patch) | |
| tree | 6b3e18bd84d7a90afd5c7a69bd46f17d2230faa0 | |
| parent | 1a83647c325f94453c840031ec01dd7176993072 (diff) | |
| parent | 745b6f0e3cc3b7952773b64b53b1de6b5ca55aac (diff) | |
| download | cmd2-git-142c4458eed9ccc23fb0ebbaf6d1ce0b03c7ea44.tar.gz | |
merged
| -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 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'}, |
