On Wed, Apr 30, 2008 at 1:42 PM, Trent Nelson <[EMAIL PROTECTED]> wrote: > > if os.name == "nt": > > _socketmethods = _socketmethods + ('ioctl',) > > + _is_windows = True > > +elif os.name == 'java': > > + from java.lang import System > > + _is_windows = 'windows' in System.getProperty('os.name').lower()
This one will not work. >>> 'windows' in System.getProperty('os.name').lower() Traceback (innermost last): File "<console>", line 1, in ? TypeError: string member test needs char left operand >>> You may have to do something like System.getProperty('os.name').lower().find('windows'). _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com