Re: [Pythonmac-SIG] Get the locale on OSX

2007-12-02 Thread Nicholas Riley
On Sun, Dec 02, 2007 at 03:18:14PM +0100, Chris Van Bael wrote: > I'm trying to port an python application which runs fine on Windows > and Linux to OSX. > However, it seems "lang = locale.getdefaultlocale()[0]" doesn't work. > I've searched quite some bit on the Internet and on this mailinglist, >

[Pythonmac-SIG] Embedding Python in Cocoa

2007-12-02 Thread Michael Terry
Hi, Suppose you had a Cocoa program that executed Python scripts periodically. If global variables were set, they'd retain their values between script runs. What would be the best approach to make this happen? Call the C APIs? If so, do I just need to initialize a Python interpreter when the prog

[Pythonmac-SIG] Get the locale on OSX

2007-12-02 Thread Chris Van Bael
Hi, I'm trying to port an python application which runs fine on Windows and Linux to OSX. However, it seems "lang = locale.getdefaultlocale()[0]" doesn't work. I've searched quite some bit on the Internet and on this mailinglist, and apparently it is a problem, but I haven't found any solution for