determine os language

Bryan belred at gmail.com
Sat Mar 19 10:23:52 EST 2005


Bryan wrote:
> is there a way to determine the operating system's language?  i can't 
> seem to find a method that returns the value.
> 
> thanks,
> 
> bryan
> 

found it myself, thanks...

 >>> import locale
 >>> locale.getdefaultlocale()
('en_US', 'cp1252')
 >>>




More information about the Python-list mailing list