Mercurial > python-cmd2
changeset 21:24fbec27d66f
os.system returns 0 on success, silly
author | catherine@localhost |
---|---|
date | Fri, 16 May 2008 15:00:33 -0400 |
parents | 1899088dd95d |
children | 354a6b713d36 |
files | cmd2.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd2.py Thu May 15 13:44:48 2008 -0400 +++ b/cmd2.py Fri May 16 15:00:33 2008 -0400 @@ -70,7 +70,7 @@ editor = 'notepad' else: for editor in ['gedit', 'kate', 'vim', 'emacs', 'nano', 'pico']: - if not os.system('which %s' % (editor)): + if os.system('which %s' % (editor)): break settable = ['prompt', 'continuationPrompt', 'defaultFileName', 'editor', 'caseInsensitive']