diff cmd2.py @ 21:24fbec27d66f

os.system returns 0 on success, silly
author catherine@localhost
date Fri, 16 May 2008 15:00:33 -0400
parents 0eb8d4e18472
children 354a6b713d36
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']