On 20-mei-2006, at 3:44, Thorsten Kohnhorst wrote: > hello, > > maybe somebody can help me with the following problem: > > is there a way to retrieve the complete arguments that where given to > the (Mac)Python interpreter (from within the first script that gets > executed with it)? > > i would like to receive the -psn_* argument that was given to the > python interpreter in my custom > bundle: > > myApp.app/Contents/MacOS/Python # the python interpreter > myApp.app/Contents/Resources/myApp.py # the script that is executed > by the above interpreter > > i hope that inserting the -psn_* argument given to the interpreter > into sys.argv or NSProcessInfo arguments > before calling AppHelper.runEventLoop() will register my application > with the dock and the window/menu manager
How are you building your application bundle? I've never had problems getting my application's icon in the dock, even before using py2app. Ronald _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig