On 15 Mar, 2011, at 0:48, Prashant Saxena wrote: > Hi, > > Once deployed as .app using py2app, I am not getting all the env vars that > are > available to users. A detailed discussion on this > topic is available at here: > https://groups.google.com/forum/#!topic/wxpython-users/8IuO_Q1ZjA8 > Considering the last post in that topic, Now all the user env vars are > available > when starting the app from terminal using command > 'open test.app". When you double click the app in finder, app starts but > again > os.environ gives limited vars. > > The idea is to get all the vars in os.environ which are available to the > user.(All vars available using 'env' command)
That's on OSX issue, and not a problem in py2app. Most of the environment variables you see from the command-line are initialized by the shell and/or Terminal.app and are not available to GUI applications. You'd see the same issue with a native application. Regards, Ronald > > Prashant > > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG