1. Ronald Oussoren
  2. py2app

Issues

Issue #109 new

Setting environment variables

Ronald Oussoren
repo owner created an issue

See http://stackoverflow.com/questions/15639218/how-to-set-default-locale-for-app-bundles-in-osx-mountain-lion

1) It should be possible to set LANG/LC_* variables through Info.plist, but that currently doesn't work.

2) It may be useful to have a py2app option for this, although explicitly updating info.plist isn't too bad.

See also http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html

Comments (1)

  1. Ronald Oussoren reporter

    Duh, setting LC_CTYPE won't work because py2app sets LC_CTYPE to "en_US.UTF-8" during Py_Initialize and that means os.environment will contain that value instead of the one mentioned in the environment.

  2. Log in to comment