changeset 644:7bf4afe634ed

Fixed bug in the Win 9x detection
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sat, 13 May 2006 01:22:13 +0200
parents 8ed1a953d12e
children 8da03e8daeb0 964c43d64815 cb9f4fe71f2d 8c08aefdaa34
files MoinMoin/util/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/__init__.py	Fri May 12 23:14:20 2006 +0200
+++ b/MoinMoin/util/__init__.py	Sat May 13 01:22:13 2006 +0200
@@ -89,7 +89,7 @@
     if hasattr(sys, 'getwindowsversion'):
         if sys.getwindowsversion()[3] == 1:
             return True
-    elif os.environ.get('comspec', '').find('command'):
+    elif 'command' in os.environ.get('comspec', ''):
         return True
     return False