> 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
> >>>

Interesting, which version of Jython were you using?

> You may have to do something like
> System.getProperty('os.name').lower().find('windows').

That didn't work for me.  I assume the following works for you:

        System.getProperty('os.name').lower().startswith('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

Reply via email to